Package com.mxraven.admin.model
Enum Class ScriptFaultReason
- All Implemented Interfaces:
Serializable,Comparable<ScriptFaultReason>,Constable
Stable reason a routing script faulted and the listener default applied.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe invocation exceeded its wall-clock deadline.The script staged an effect the validator rejected at runtime.The invocation exceeded its memory budget.The published revision was quarantined after repeated faults.The listener exhausted its routing budget.The script raised an error or exceeded its instruction budget. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptFaultReasonResolves the constant for a wire value.static ScriptFaultReasonReturns the enum constant of this class with the specified name.static ScriptFaultReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.wire()The value used on the wire.
-
Enum Constant Details
-
RUNTIME_ERROR
The script raised an error or exceeded its instruction budget. -
DEADLINE_EXCEEDED
The invocation exceeded its wall-clock deadline. -
MEMORY_EXHAUSTED
The invocation exceeded its memory budget. -
INVALID_EFFECT
The script staged an effect the validator rejected at runtime. -
ROUTING_BUDGET_EXHAUSTED
The listener exhausted its routing budget. -
QUARANTINED
The published revision was quarantined after repeated faults.
-
-
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
-
wire
The value used on the wire.- Returns:
- the wire value
-
fromWire
Resolves the constant for a wire value.- Parameters:
value- wire value, ornull- Returns:
- the matching constant, or
nullwhenvalueisnull - Throws:
IllegalArgumentException- if the value is unknown
-