public static enum StateMachineBuilderException.ErrorType extends Enum<StateMachineBuilderException.ErrorType>
| Enum Constant and Description |
|---|
EVENT_AND_EVENT_TYPES_DIFFER |
NO_INITIAL_STATE
Thrown when there is no initial state defined.
|
NO_INITIAL_STATE_NO_STATES_AT_ALL
Thrown when the states are an enum and no initial states has been defined
and the enum does not define any enum constants.
|
STATE_WITH_ENTER_HANDLER_ILLEGALY_PARAMETERIZED |
STATE_WITH_EXIT_HANDLER_ILLEGALY_PARAMETERIZED |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
static StateMachineBuilderException.ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StateMachineBuilderException.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateMachineBuilderException.ErrorType NO_INITIAL_STATE
Thrown when there is no initial state defined.
If the states are an enum a StateMachineBuilder will simply pick the
first defined enum. If the states are neither an enum nor an initial
state has been defined using
StateMachineBuilder.withInitialState(Object), an Exception of
this type will be thrown.
Exceptions of this type will report "No initial state defined."
public static final StateMachineBuilderException.ErrorType NO_INITIAL_STATE_NO_STATES_AT_ALL
Thrown when the states are an enum and no initial states has been defined and the enum does not define any enum constants.
Exceptions of this type will report "Event and EventType differ, but there is no way to derive the type of an event."
public static final StateMachineBuilderException.ErrorType EVENT_AND_EVENT_TYPES_DIFFER
public static final StateMachineBuilderException.ErrorType STATE_WITH_ENTER_HANDLER_ILLEGALY_PARAMETERIZED
public static final StateMachineBuilderException.ErrorType STATE_WITH_EXIT_HANDLER_ILLEGALY_PARAMETERIZED
public static StateMachineBuilderException.ErrorType[] values()
for (StateMachineBuilderException.ErrorType c : StateMachineBuilderException.ErrorType.values()) System.out.println(c);
public static StateMachineBuilderException.ErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Generated(value="lombok") public String getMessage()
Copyright © 2015. All rights reserved.