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