Package io.hektor.fsm

Enum Class FsmAlertCode

java.lang.Object
java.lang.Enum<FsmAlertCode>
io.hektor.fsm.FsmAlertCode
All Implemented Interfaces:
io.snice.logging.Alert, Serializable, Comparable<FsmAlertCode>, Constable

public enum FsmAlertCode extends Enum<FsmAlertCode> implements io.snice.logging.Alert
Generic Alert codes for an FSM.
  • Enum Constant Details

    • UNHANDLED_FSM_EVENT

      public static final FsmAlertCode UNHANDLED_FSM_EVENT
      If the FSM receives an event for which there is not defined transition, we will log a warning. Any event that is "unhandled" is a bug and should be addressed asap.
  • Method Details

    • values

      public static FsmAlertCode[] 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 FsmAlertCode 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
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface io.snice.logging.Alert
    • getCode

      public int getCode()
      Specified by:
      getCode in interface io.snice.logging.Alert