java.lang.Object
org.apache.commons.lang.enum.Enum
au.edu.educationau.belts.command.ErrorTypeEnum
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class ErrorTypeEnum
- extends org.apache.commons.lang.enum.Enum
An enum that provides for three levels of error.
- SystemError - a failure in the system infrastructure
- Error - An error due to some user input, eg duplicate ids
- Warning - A none fatal error that may mean some alternative actions
may need to be taken.
- Version:
- $Revision: 1.5 $ - $Date: 2003/06/17 06:20:32 $
| Nested classes inherited from class org.apache.commons.lang.enum.Enum |
|
|
Field Summary |
static ErrorTypeEnum |
ERROR
Used to indicate a processing error, eg a required field has not been supplied or
the record allready exists. |
private static long |
serialVersionUID
|
static ErrorTypeEnum |
SYSTEM_ERROR
Used to indicate a system service failure, for example the database can not
be reached, or a programming error such as an unmanaged Runtime exception. |
static ErrorTypeEnum |
WARNING
Used to indicate a processing warning of some kind. |
| Fields inherited from class org.apache.commons.lang.enum.Enum |
iToString |
| Methods inherited from class org.apache.commons.lang.enum.Enum |
compareTo, equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
SYSTEM_ERROR
public static final ErrorTypeEnum SYSTEM_ERROR
- Used to indicate a system service failure, for example the database can not
be reached, or a programming error such as an unmanaged Runtime exception.
ERROR
public static final ErrorTypeEnum ERROR
- Used to indicate a processing error, eg a required field has not been supplied or
the record allready exists.
WARNING
public static final ErrorTypeEnum WARNING
- Used to indicate a processing warning of some kind. These are not fatal to the
Command but may mean some reduced functionality, eg: A message telling the user
that a password could not be sent to the new user because they have no email
address configured.
ErrorTypeEnum
private ErrorTypeEnum(java.lang.String errorLevel)
getEnum
public static ErrorTypeEnum getEnum(java.lang.String errorLevel)
- Finds the ErrorTypeEnum associated with the String
getEnumMap
public static java.util.Map getEnumMap()
- Get a map of String representation to enum instances
getEnumList
public static java.util.List getEnumList()
- Get the list of enums
iterator
public static java.util.Iterator iterator()
- Get an iterator for the list of enums