org.apache.empire.commons
Class Errors
java.lang.Object
org.apache.empire.commons.Errors
public class Errors
- extends java.lang.Object
This class holds the definition of common error types.
No instances of this class can be created. It's sole
purpose is to hold the definition of Error Types.
Define your own error types in the same way.
See @link ErrorType
for futher information.
Method Summary |
static java.lang.String |
getErrorMessage(ErrorInfo info)
Gets an error Message from an object implementing the error info interface. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
None
public static final ErrorType None
Cancelled
public static final ErrorType Cancelled
Exception
public static final ErrorType Exception
Internal
public static final ErrorType Internal
InvalidArg
public static final ErrorType InvalidArg
NotSupported
public static final ErrorType NotSupported
NotImplemented
public static final ErrorType NotImplemented
ObjectNotValid
public static final ErrorType ObjectNotValid
InvalidProperty
public static final ErrorType InvalidProperty
NoAccess
public static final ErrorType NoAccess
NotAuthorized
public static final ErrorType NotAuthorized
InvalidPassword
public static final ErrorType InvalidPassword
OutOfRange
public static final ErrorType OutOfRange
ItemNotFound
public static final ErrorType ItemNotFound
ItemExists
public static final ErrorType ItemExists
IllegalValue
public static final ErrorType IllegalValue
IllegalFormat
public static final ErrorType IllegalFormat
NoResult
public static final ErrorType NoResult
NoMoreData
public static final ErrorType NoMoreData
FileNotFound
public static final ErrorType FileNotFound
FileExists
public static final ErrorType FileExists
FileFormatError
public static final ErrorType FileFormatError
FileReadError
public static final ErrorType FileReadError
FileWriteError
public static final ErrorType FileWriteError
PathNotFound
public static final ErrorType PathNotFound
PathCreateFailed
public static final ErrorType PathCreateFailed
getErrorMessage
public static java.lang.String getErrorMessage(ErrorInfo info)
- Gets an error Message from an object implementing the error info interface.