public class Error extends Object
| Constructor and Description |
|---|
Error() |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Returns error code
|
String |
getErrorMessage()
Returns error in string format.
|
Map<String,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(String errorMessage) |
protected void |
setErrors(HashMap<String,Object> errorHashMap) |
public String getErrorMessage()
String errorString = error.getErrorMessage();
protected void setErrorMessage(String errorMessage)
public int getErrorCode()
int errorCode = error.getErrorCode();
protected void setErrorCode(int errorCode)
public Map<String,Object> getErrors()
HashMap<String, Object> errorHashMap = error.getErrors();
Copyright © 2019 Contentstack. All rights reserved.