Enum Class LogAlerts.FailLevel
- All Implemented Interfaces:
Serializable, Comparable<LogAlerts.FailLevel>, Constable
- Enclosing interface:
LogAlerts
What building LogConfig and starting Rainbow Gum do with alerts recorded while
starting, set by "logging.alerts.fail". Checked once when
LogConfig is built and once right after Rainbow Gum starts; alerts after
that never fail anything. Evicting or clearing an alert from the diagnostic queue
does not prevent it from failing startup.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LogAlerts.FailLevelReturns the enum constant of this class with the specified name.static LogAlerts.FailLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
Default. Alerts never fail startup. -
ERROR
Fail if an error alert is recorded while starting. -
WARNING
Fail if a warning or error alert is recorded while starting.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-