
public enum Severity extends Enum<Severity>
| Enum Constant and Description |
|---|
ALERT
Alert: action must be taken immediately, numerical code 1.
|
CRITICAL
Critical: critical conditions, numerical code 2.
|
DEBUG
Debug: debug-level messages, numerical code 7.
|
EMERGENCY
Emergency: system is unusable, numerical code 0.
|
ERROR
Error: error conditions, numerical code 3.
|
INFORMATIONAL
Informational: informational messages, numerical code 6.
|
NOTICE
Notice: normal but significant condition, numerical code 5.
|
WARNING
Warning: warning conditions, numerical code 4.
|
| Modifier and Type | Method and Description |
|---|---|
static Comparator<Severity> |
comparator()
Compare on
numericalCode() |
static Severity |
fromLabel(String label) |
static Severity |
fromNumericalCode(int numericalCode) |
String |
label()
Syslog severity textual code.
|
int |
numericalCode()
Syslog severity numerical code
|
static Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Severity EMERGENCY
public static final Severity ALERT
public static final Severity CRITICAL
public static final Severity ERROR
public static final Severity WARNING
public static final Severity NOTICE
public static final Severity INFORMATIONAL
public static final Severity DEBUG
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity 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 static Severity fromNumericalCode(int numericalCode) throws IllegalArgumentException
numericalCode - Syslog severity numerical codenullIllegalArgumentException - the given numericalCode is not a valid Syslog severity
numerical codepublic static Severity fromLabel(String label) throws IllegalArgumentException
label - Syslog severity textual code. null or empty returns nullnull if given value is nullIllegalArgumentException - the given value is not a valid Syslog severity textual codepublic int numericalCode()
public String label()
null.public static Comparator<Severity> comparator()
numericalCode()Copyright © 2009–2025 OrientDB. All rights reserved.