| Enum | Description |
|---|---|
| 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.
|
| Exception | Description |
|---|---|
| ActionAlreadyDefinedException |
Indicates that an action was already associated with the object (
State or
Transition) |
| DefaultTransitionAlreadySpecifiedException |
You can only have a single default transition for a transient state.
|
| FinalStateAlreadyDefinedException |
Indicates that you tried to define a final state twice.
|
| FinalStateIsTransientException |
Indicates that you tried to define the final state as transient, which you cannot do.
|
| FinalStateTransitionsException |
Indicates that you tried to define transitions on a final state.
|
| FSMBuilderException | |
| GuardAlreadyDefinedException |
Indicates that a guard was already associated with the object (
State or
Transition) |
| IllegalTransformationOnTransitionException |
You can optionally specify a transformation with your transition but you can only do so
if the state you are transitioning to is a so-called transient state.
|
| InitialStateAlreadyDefinedException |
Indicates that you tried to define an initial state twice.
|
| StateAlreadyDefinedException |
You can only define the same state once.
|
| StateBuilderException | |
| StateNotDefinedException |
If you define a transition from A to B but then you never end up defining the state B,
you will get this exception thrown when trying to build the FSM.
|
| TransientLoopDetectedException |
If you would be able to specify a transition from a transient state to another transient state (or itself)
you will likely end up in a loop.
|
| TransientStateMissingTransitionException |
Indicates that you defined a transient state but didn't specify any default
transitions, which you must for a transient state or you will get stuck
in that state and then it wouldn't be a transient state, now would it!
|
| TransitionMissingException |
Indicates that you didn't define any transitions for the given state.
|
Copyright © 2019. All rights reserved.