|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.utility.ErrorCode
public class ErrorCode
Base class for all error codes. Error codes represent a return value that can be used to indicate various states of execution. Error codes are compared according to their text representation.
Field Summary | |
---|---|
static ErrorCode |
NOT_SET
The initial value of an error code that was not set yet. |
static ErrorCode |
UNKNOWN_ERROR
Not specific error appeared. |
Constructor Summary | |
---|---|
protected |
ErrorCode(java.lang.String text)
Creates a new instance of ErrorCode. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static ErrorCode NOT_SET
public static ErrorCode UNKNOWN_ERROR
Constructor Detail |
---|
protected ErrorCode(java.lang.String text)
text
- the text representation of the new error codeMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |