public static enum Error.ErrorLevel extends java.lang.Enum<Error.ErrorLevel>
Enum Constant and Description |
---|
MODERATE
Moderate error: The
SystemComponent will have to stop, but
the overall system can still run. |
SEVERE
Severe error: The whole system will have to stop running.
|
WARNING
Light error: The
SystemComponent can still run. |
Modifier and Type | Method and Description |
---|---|
static Error.ErrorLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Error.ErrorLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Error.ErrorLevel WARNING
SystemComponent
can still run.public static final Error.ErrorLevel MODERATE
SystemComponent
will have to stop, but
the overall system can still run.public static final Error.ErrorLevel SEVERE
public static Error.ErrorLevel[] values()
for (Error.ErrorLevel c : Error.ErrorLevel.values()) System.out.println(c);
public static Error.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 null