public class ErrorCode
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static ErrorCode |
NOT_SET
The initial value of an error code that was not set yet.
|
static ErrorCode |
UNKNOWN_ERROR
Not specific error appeared.
|
Modifier | Constructor and Description |
---|---|
protected |
ErrorCode(java.lang.String text)
Creates a new instance of ErrorCode.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
boolean |
isSet()
Returns true if the error code is not set yet (i.e. has the value of
NOT_SET ). |
boolean |
isUnknownError()
Returns true if the error code is an unknown error (i.e. has the value of
UNKNOWN_ERROR ). |
java.lang.String |
toString()
Returns the textual representation of this error code.
|
public static ErrorCode NOT_SET
public static ErrorCode UNKNOWN_ERROR
protected ErrorCode(java.lang.String text)
text
- the text representation of the new error codepublic final boolean isSet()
NOT_SET
).public final boolean isUnknownError()
UNKNOWN_ERROR
).public final java.lang.String toString()
toString
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object object)
equals
in class java.lang.Object