Package io.hektor.fsm.builder.exceptions
package io.hektor.fsm.builder.exceptions
-
ClassDescriptionIndicates that an action was already associated with the object (
StateorTransition)You can only have a single default transition for a transient state.Indicates that you tried to define a final state twice.Indicates that you tried to define the final state as transient, which you cannot do.Indicates that you tried to define transitions on a final state.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.Indicates that a guard was already associated with the object (StateorTransition)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.Indicates that you tried to define an initial state twice.You can only define the same state once.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.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.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!Indicates that you didn't define any transitions for the given state.