org.nhindirect.stagent.mail.notifications
Enum ErrorType

java.lang.Object
  extended by java.lang.Enum<ErrorType>
      extended by org.nhindirect.stagent.mail.notifications.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ErrorType>

public enum ErrorType
extends Enum<ErrorType>

Indicates disposition modifier of error, failure or warning.

RFC 3798, Disposition field, 3.2.6, disposition-modifier, includes modifiers that are referred to in the text but not in the grammar.

Author:
Greg Meyer, Umesh Madan

Enum Constant Summary
Error
          Indicates message had an error.
Failure
          Indicates failure to deliver.
Warning
          Indicates an informative warning
 
Method Summary
static ErrorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Error

public static final ErrorType Error
Indicates message had an error.


Failure

public static final ErrorType Failure
Indicates failure to deliver.


Warning

public static final ErrorType Warning
Indicates an informative warning

Method Detail

values

public static ErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ErrorType c : ErrorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ErrorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2012 HNIN Direct. All Rights Reserved.