errorCode:int APICall(args:object, handler:function)
void handler(response:object)
{
error:int,
warning:int,
errorMsg:String,
errorObj:Object,
data:Object
}
error will be absent or
ERR_NONE. ERR_NONE is defined as 0, so
success is indicated by !error.
openmail. Individual classes can define their own specific error codes.
warning if the call
succeeded but had some issue. Only one of either
error or warning
can be present. If warning is present,
errorMsg and errorObj may be present to provide additional information
about the warning.
errorMsg is an informational message intended for debugging only.
errorObj may contain rich error information defined by the individual method that was called.
data contains the data returned by the individual
method that was called. If data is present, it is guaranteed to be an
object. The members of the object are defined by the individual method called.
int because errors are
actually enumerations and not numbers.
args object may accept additional data, or
response.data
may return additional information), but calls made against an older version of the API will continue to work.
ERR_DELETED.
This module contains the following classes: