public class ErrorState
extends java.lang.Object
| Constructor and Description |
|---|
ErrorState(int state)
Constructor that takes only the error code number as argument.
|
ErrorState(int state,
java.lang.String description)
Constructor that takes the error code number and the description as arguments.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.HashMap |
getAdditionalInfo() |
java.lang.String |
getDescription() |
int |
getErrorCode() |
void |
setAdditionalInfo(java.util.HashMap info)
Sets additional information about the error.
|
java.lang.String |
toString() |
public ErrorState(int state)
state - the error code numberpublic ErrorState(int state,
java.lang.String description)
state - the error code numberdescription - the description of the errorpublic int getErrorCode()
public java.lang.String getDescription()
public void setAdditionalInfo(java.util.HashMap info)
info - more information about the error.public java.util.HashMap getAdditionalInfo()
public java.lang.String toString()
toString in class java.lang.Object