public class MobileError
extends java.lang.Object
Mobile SDK uses this class to publish error cases through call backs
Modifier and Type | Field and Description |
---|---|
double |
retryAfter |
Constructor and Description |
---|
MobileError(int errorCode,
java.lang.String errorMessage)
Default constructor
|
MobileError(MobileException exception)
Construct with given error
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
MobileError type checker
|
int |
getErrorCode()
Returns the error code information
|
java.lang.String |
getErrorMessage()
Returns the error message information
|
java.lang.String |
toString()
Textual representation of the mobile error
|
public MobileError(int errorCode, java.lang.String errorMessage)
errorCode
- error code valueerrorMessage
- detailed information related to the errorConstants.ErrorCodes
public MobileError(MobileException exception)
exception
- mobile exceptionConstants.ErrorCodes
public int getErrorCode()
public java.lang.String getErrorMessage()
String
public java.lang.String toString()
toString
in class java.lang.Object
String
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object
Boolean