public static enum Message.ErrorLevel extends java.lang.Enum<Message.ErrorLevel>
Dringlichkeit einer Warnung
Enum Constant and Description |
---|
ERROR
Fehler oder anhaltendes, schweres Problem, z.B.
|
INFO
Einfache Meldung über den Programmzustand
|
MAJOR
Wichtige Warnung oder ein (voraussichtlich) vorübergehendes Problem, Betriebsmeldung notwendig
|
MINOR
Geringfügige Warnung oder Hinweis, keine Betriebsmeldung notwendig
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMinor()
Ist die Warnung unwichtig?
|
java.lang.String |
toString() |
static Message.ErrorLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Message.ErrorLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.ErrorLevel INFO
public static final Message.ErrorLevel MINOR
public static final Message.ErrorLevel MAJOR
public static final Message.ErrorLevel ERROR
public static Message.ErrorLevel[] values()
for (Message.ErrorLevel c : Message.ErrorLevel.values()) System.out.println(c);
public static Message.ErrorLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isMinor()
Ist die Warnung unwichtig? Sie wird dann z.B. nicht über die Betriebsmeldung verschickt.
public java.lang.String toString()
toString
in class java.lang.Enum<Message.ErrorLevel>