Errors raised by API for one among three reasons : wrong API usage, underlying service error or unknown reason.
Properties:
Name | Type | Description |
---|---|---|
message | String | Error message |
status | Number | Error status : when Gp.Error.TYPE_SRVERR, gives the HTTP status of the underlying web service response ; -1 otherwise. |
type | String | Error type (Gp.Error.TYPE_SRVERR, Gp.Error.TYPE_USEERR or Gp.Error.TYPE_UNKERR). |
Members
-
static,constantGp.Error.TYPE_SRVERRString
-
Error raised when underlying geoportal service answers on error.
-
static,constantGp.Error.TYPE_UNKERRString
-
Error raised when API can't perform the job for a reason other than the two other ones.
-
static,constantGp.Error.TYPE_USEERRString
-
Error raised when funcion use is inappropriate