Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

au.edu.educationau.belts.command
Class ErrorTypeEnum  view ErrorTypeEnum download ErrorTypeEnum.java

java.lang.Object
  extended byorg.apache.commons.lang.enum.Enum
      extended byau.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.

  1. SystemError - a failure in the system infrastructure
  2. Error - An error due to some user input, eg duplicate ids
  3. 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 Class Summary
 
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
 
Constructor Summary
private ErrorTypeEnum(java.lang.String errorLevel)
           
 
Method Summary
static ErrorTypeEnum getEnum(java.lang.String errorLevel)
          Finds the ErrorTypeEnum associated with the String
static java.util.List getEnumList()
          Get the list of enums
static java.util.Map getEnumMap()
          Get a map of String representation to enum instances
static java.util.Iterator iterator()
          Get an iterator for the list of enums
 
Methods inherited from class org.apache.commons.lang.enum.Enum
compareTo, equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

ErrorTypeEnum

private ErrorTypeEnum(java.lang.String errorLevel)
Method Detail

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