Class: ECHO.Error
Defined in: | src/ECHO.Error.coffee |
Inherits: | Error |
Overview
An ECHO.Error represents exceptions or errors occurred in the SDK.
Property Summary
- (String) name
- error name
- (int) code
- error code
- (String) message
- error message
- (Object<String,ECHO.Error>) details
- error details
Variables Summary
- APPID_NOT_SPECIFIED =
-
100010
- APPKEY_NOT_SPECIFIED =
-
100020
- INVALID_API_APPLICATION =
-
100030
- RESOURCE_NOT_FOUND =
-
110010
- NOTFOUND_OR_FORBIDDEN =
-
110020
- METHOD_NOT_ALLOWED =
-
110030
- UNSUPPORTED_MEDIA_TYPE =
-
110040
- INVALID_JSON_FORMAT =
-
110050
- OPERATION_NOT_PERMITTED =
-
130000
- AUTHENTICATION_ERROR =
-
130010
- ACCESSTOKEN_INCORRECTED_OR_EXPIRED =
-
130020
- READ_ONLY =
-
130030
- VALIDATION_ERRORS_OCCURRED =
-
150000
- NOT_SET =
-
150010
- CONTAINED_RESTRICTED_CHARACTER =
-
150020
- TOO_LONG =
-
150030
- TOO_SHORT =
-
150031
- NON_UNIQUE =
-
150040
- CONTAINED_NON_NUMERIC_CHARACTER =
-
150050
- EXCEED_ACCEPTABLE_RANGE =
-
150051
- NOT_A_PERCENTAGE =
-
150052
- INVALID_EMAIL_FORMAT =
-
150060
- REFERENCE_LOOPED =
-
150070
- INVALID_PHONE_NUMBER_FORMAT =
-
150080
- INVALID_DATE_STRING_FORMAT =
-
150090
- INVALID_ZIPCODE_FORMAT =
-
150100
- REFERENCE_NOT_EXIST =
-
150110
- INVALID_PREF_FORMAT =
-
150120
- INVALID_VALUE =
-
150130
- INVALID_FIELD_REFID =
-
150140
Instance Method Summary
- # (void) setErrorDetail(key, code, message) Sets a new ECHO.Error into the details of this error
Constructor Details
#
(void)
constructor(code, message)
Constructs a new ECHO.Error with a particular error code.
Instance Method Details
#
(void)
setErrorDetail(key, code, message)
Sets a new ECHO.Error into the details of this error