com.vaadin.terminal
Enum ErrorMessage.ErrorLevel

java.lang.Object
  extended by java.lang.Enum<ErrorMessage.ErrorLevel>
      extended by com.vaadin.terminal.ErrorMessage.ErrorLevel
All Implemented Interfaces:
Serializable, Comparable<ErrorMessage.ErrorLevel>
Enclosing interface:
ErrorMessage

public static enum ErrorMessage.ErrorLevel
extends Enum<ErrorMessage.ErrorLevel>


Enum Constant Summary
CRITICAL
          Error code for critical error messages.
ERROR
          Error code for regular error messages.
INFORMATION
          Error code for informational messages.
SYSTEMERROR
          Error code for system errors and bugs.
WARNING
          Error code for warning messages.
 
Method Summary
 String getText()
          Textual representation for server-client communication of level
 int intValue()
          Integer representation of error severity for comparison
 String toString()
           
static ErrorMessage.ErrorLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorMessage.ErrorLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INFORMATION

public static final ErrorMessage.ErrorLevel INFORMATION
Error code for informational messages.


WARNING

public static final ErrorMessage.ErrorLevel WARNING
Error code for warning messages.


ERROR

public static final ErrorMessage.ErrorLevel ERROR
Error code for regular error messages.


CRITICAL

public static final ErrorMessage.ErrorLevel CRITICAL
Error code for critical error messages.


SYSTEMERROR

public static final ErrorMessage.ErrorLevel SYSTEMERROR
Error code for system errors and bugs.

Method Detail

values

public static ErrorMessage.ErrorLevel[] 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 (ErrorMessage.ErrorLevel c : ErrorMessage.ErrorLevel.values())
    System.out.println(c);

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

valueOf

public static ErrorMessage.ErrorLevel 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

getText

public String getText()
Textual representation for server-client communication of level

Returns:
String for error severity

intValue

public int intValue()
Integer representation of error severity for comparison

Returns:
integer for error severity

toString

public String toString()
Overrides:
toString in class Enum<ErrorMessage.ErrorLevel>


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.