Enum Class ScriptFaultReason

java.lang.Object
java.lang.Enum<ScriptFaultReason>
com.mxraven.admin.model.ScriptFaultReason
All Implemented Interfaces:
Serializable, Comparable<ScriptFaultReason>, Constable

public enum ScriptFaultReason extends Enum<ScriptFaultReason>
Stable reason a routing script faulted and the listener default applied.
  • Enum Constant Details

    • RUNTIME_ERROR

      public static final ScriptFaultReason RUNTIME_ERROR
      The script raised an error or exceeded its instruction budget.
    • DEADLINE_EXCEEDED

      public static final ScriptFaultReason DEADLINE_EXCEEDED
      The invocation exceeded its wall-clock deadline.
    • MEMORY_EXHAUSTED

      public static final ScriptFaultReason MEMORY_EXHAUSTED
      The invocation exceeded its memory budget.
    • INVALID_EFFECT

      public static final ScriptFaultReason INVALID_EFFECT
      The script staged an effect the validator rejected at runtime.
    • ROUTING_BUDGET_EXHAUSTED

      public static final ScriptFaultReason ROUTING_BUDGET_EXHAUSTED
      The listener exhausted its routing budget.
    • QUARANTINED

      public static final ScriptFaultReason QUARANTINED
      The published revision was quarantined after repeated faults.
  • Method Details

    • values

      public static ScriptFaultReason[] 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

      public static ScriptFaultReason valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • wire

      public String wire()
      The value used on the wire.
      Returns:
      the wire value
    • fromWire

      public static ScriptFaultReason fromWire(String value)
      Resolves the constant for a wire value.
      Parameters:
      value - wire value, or null
      Returns:
      the matching constant, or null when value is null
      Throws:
      IllegalArgumentException - if the value is unknown