public class Error
extends java.lang.Object
Constructor and Description |
---|
Error() |
Error(java.lang.String errorMessage,
int errorCode,
java.lang.String errDetails) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns error code
|
java.lang.String |
getErrorDetail()
Returns error details in String
|
java.lang.String |
getErrorMessage()
Returns error in string format.
|
protected void |
setErrorCode(int errorCode) |
protected void |
setErrorDetail(java.lang.String errDetails) |
protected void |
setErrorMessage(java.lang.String errorMessage) |
public Error()
public Error(java.lang.String errorMessage, int errorCode, java.lang.String errDetails)
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.lang.String getErrorDetail()
String error = error.getErrorDetail();
protected void setErrorDetail(java.lang.String errDetails)