public class IllegalTransitionException
extends java.lang.Exception
Defines an exception that is thrown when a ControlledState instance attempts to set its value to a state that is not a valid
successor of this current value.
| Constructor and Description |
|---|
IllegalTransitionException(java.lang.Object fromState,
java.lang.Object toState)
Constructs an exception stating that the provided transition is not allowed.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFromState()
Returns the start state of the forbidden transition.
|
java.lang.String |
getMessage() |
java.lang.Object |
getToState()
Returns the end state of the forbidden transition.
|
public IllegalTransitionException(java.lang.Object fromState,
java.lang.Object toState)
Constructs an exception stating that the provided transition is not allowed.
fromState - The start state of the transition. Can be null.toState - The end state of the transition. Can be null.public java.lang.Object getFromState()
Returns the start state of the forbidden transition.
public java.lang.Object getToState()
Returns the end state of the forbidden transition.
public java.lang.String getMessage()
getMessage in class java.lang.Throwable© Copyright IBM Corp. 1987, 2017