public static enum ErrorMessage.ErrorLevel extends Enum<ErrorMessage.ErrorLevel>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
ErrorLevel |
convertToShared()
Converts this to an error level that can be used on the client side.
|
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.
|
public static final ErrorMessage.ErrorLevel INFORMATION
public static final ErrorMessage.ErrorLevel WARNING
public static final ErrorMessage.ErrorLevel ERROR
public static final ErrorMessage.ErrorLevel CRITICAL
public static final ErrorMessage.ErrorLevel SYSTEMERROR
public static ErrorMessage.ErrorLevel[] values()
for (ErrorMessage.ErrorLevel c : ErrorMessage.ErrorLevel.values()) System.out.println(c);
public static ErrorMessage.ErrorLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getText()
public int intValue()
public String toString()
toString
in class Enum<ErrorMessage.ErrorLevel>
public ErrorLevel convertToShared()
Copyright © 2019 Vaadin Ltd. All rights reserved.