public class Error
extends java.lang.Object
Constructor and Description |
---|
Error() |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns error code.
|
java.lang.String |
getErrorMessage()
Returns error in string format.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getErrors()
Returns error in HashMap format where error is key and its respective information as HashMap's value.
|
protected void |
setErrorCode(int errorCode) |
protected void |
setErrorMessage(java.lang.String errorMessage) |
protected void |
setErrors(java.util.HashMap<java.lang.String,java.lang.Object> errorHashMap) |
public java.lang.String getErrorMessage()
String errorString = error.getErrorMessage();
protected void setErrorMessage(java.lang.String errorMessage)
public int getErrorCode()
int errorCode = error.getErrorCode();
protected void setErrorCode(int errorCode)
public java.util.HashMap<java.lang.String,java.lang.Object> getErrors()
HashMap<String, Object> errorHashMap = error.getErrors();
protected void setErrors(java.util.HashMap<java.lang.String,java.lang.Object> errorHashMap)