InitializationError
Thrown when StateEvents.onEntry fails during the initial @InitialState walk at startup.
Extends
HsmError<Context,Protocol>
Type Parameters
Context
Context
Protocol
Protocol extends { } | undefined
Constructors
Constructor
new InitializationError<
Context,Protocol>(hsm,failedState,cause):InitializationError<Context,Protocol>
Parameters
hsm
State<Context, Protocol>
Partially initialized machine
failedState
StateClass<Context, Protocol>
State class whose onEntry threw
cause
Error
Original error from onEntry
Returns
InitializationError<Context, Protocol>
Overrides
Properties
name
name:
string
Discriminator matching the class name (EventHandlerError, etc.).
Inherited from
topStateName
topStateName:
string
Properties.topStateName when the error was constructed.
Inherited from
stateName
stateName:
string
Properties.currentStateName when the error was constructed.
Inherited from
context
context:
Context
Snapshot of State.ctx when the error was constructed.
Inherited from
cause?
optionalcause?:Error
Original thrown value when this error wraps a handler or lifecycle failure.
Inherited from
failedState
failedState:
StateClass<Context,Protocol>
State class whose onEntry threw