Accela SDK for Android  V3.0
 All Classes Functions Variables Pages
com.accela.mobile.AMError Class Reference

Public Member Functions

 AMError (String traceId, String errorMessage, String more)
 
String getTraceId ()
 
String getErrorMessage ()
 
String getMore ()
 
String toString ()
 

Static Public Attributes

static final int ERROR_CODE_REQUEST_TIMEOUT = 1000
 
static final int ERROR_CODE_EMSE_FAILURE = 11000
 
static int ERROR_CODE_JSON_PARSING = 1008
 
static int ERROR_CODE_BUSINESS = 1009
 
static final int ERROR_CODE_EXCEPTION = 9999
 
static final int ERROR_CODE_HTTP_MINIMUM = 300
 
static int ERROR_CODE_Bad_Request = 400
 
static int ERROR_CODE_Unauthorized = 401
 
static int ERROR_CODE_Forbidden = 403
 
static int ERROR_CODE_Not_Found = 404
 
static int ERROR_CODE_Internal_Server_Error = 500
 

Detailed Description

 Accela Amobile
 File: AError.java
 Accela, Inc.
 Copyright (C): 2013
 Description:
 Error object wrapper
 Notes:
 Revision History
Since
1.0

Constructor & Destructor Documentation

com.accela.mobile.AMError.AMError ( String  traceId,
String  errorMessage,
String  more 
)
inline

Constructor with the given parameters.

Parameters
traceIdThe trace Id for debugging the error on mobile server.
errorMessageThe error message string.
moreThe more detailed error message string.
Returns
An initialized AMError object.
Since
1.0

Member Function Documentation

String com.accela.mobile.AMError.getErrorMessage ( )
inline

Get error message of the current error.

Returns
The message content string.
Since
1.0
String com.accela.mobile.AMError.getMore ( )
inline

Get more detailed error message of the current error.

Returns
The more detailed error message string.
Since
1.0
String com.accela.mobile.AMError.getTraceId ( )
inline

Get trace Id of the current error.

Returns
The trace Id.
Since
1.0
String com.accela.mobile.AMError.toString ( )
inline

Convert the current error object to a string.

Returns
A string which contains the current error object's property values.
Since
1.0

Member Data Documentation

int com.accela.mobile.AMError.ERROR_CODE_Bad_Request = 400
static

HTTP standard error code, which indicates error in HTTP / HTTPS request syntax.

Since
3.0
int com.accela.mobile.AMError.ERROR_CODE_BUSINESS = 1009
static

A customized error code, which means error in business processing.

Since
3.0
final int com.accela.mobile.AMError.ERROR_CODE_EMSE_FAILURE = 11000
static

A customized error code, which returned from cloud API when an operation(e.g. result inspection) fails due to EMSE event.

Since
3.1
final int com.accela.mobile.AMError.ERROR_CODE_EXCEPTION = 9999
static

A customized error code, which means unexpected error(e.g. exceptions)

Since
3.1
int com.accela.mobile.AMError.ERROR_CODE_Forbidden = 403
static

HTTP standard error code, which indicates error in client's access to service APIs.

Since
3.0
final int com.accela.mobile.AMError.ERROR_CODE_HTTP_MINIMUM = 300
static

The minimum status code for HTTP errors. Any code which is greater than this number means HTTP error.

Since
3.1
int com.accela.mobile.AMError.ERROR_CODE_Internal_Server_Error = 500
static

HTTP standard error code, which indicates error in cloud server when calling service APIs.

Since
3.0
int com.accela.mobile.AMError.ERROR_CODE_JSON_PARSING = 1008
static

A customized error code, which means error in JSON parsing.

Since
3.0
int com.accela.mobile.AMError.ERROR_CODE_Not_Found = 404
static

HTTP standard error code, which indicates error in the requested URI of service APIs.

Since
3.0
final int com.accela.mobile.AMError.ERROR_CODE_REQUEST_TIMEOUT = 1000
static

A customized error code, which means timeout in HTTP request.

Since
3.1
int com.accela.mobile.AMError.ERROR_CODE_Unauthorized = 401
static

HTTP standard error code, which indicates error in client's authorization to service APIs.

Since
3.0

The documentation for this class was generated from the following file: