Enum Class FSMBuilderException.ErrorCode

java.lang.Object
java.lang.Enum<FSMBuilderException.ErrorCode>
io.hektor.fsm.builder.exceptions.FSMBuilderException.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<FSMBuilderException.ErrorCode>, Constable
Enclosing class:
FSMBuilderException

public static enum FSMBuilderException.ErrorCode extends Enum<FSMBuilderException.ErrorCode>
There are many different issues that can occur when building the state machine and instead of having individual exceptions for everything, we have these error codes. The reason is that some of the issues that may arise may be hard to understand and generic exceptions will not catch those scenarios so it is important that we have enough documentation around those cases so the user, you, understand why building the FSM failed.
  • Enum Constant Details

  • Method Details

    • values

      public static FSMBuilderException.ErrorCode[] 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 FSMBuilderException.ErrorCode 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
    • getTemplate

      public String getTemplate()