Construct a TransitionError with a message and optional causing error.
The error message
The causing error
The error, if exists, that caused this error
The error message
The name of the error, which is generally the constructor name
A value to identify the error from other errors
Generated using TypeDoc
Thrown when an invalid state transition is made.