HsmError
Base class for all ihsm runtime errors carrying machine context.
Extends
Error
Extended by
Type Parameters
Context
Context
Domain context at failure time
Protocol
Protocol extends { } | undefined
Vocabulary type (for typed subclasses)
Constructors
Constructor
protectednew HsmError<Context,Protocol>(name,hsm,message,cause?):HsmError<Context,Protocol>
Parameters
name
string
hsm
State<Context, Protocol>
message
string
cause?
Error
Returns
HsmError<Context, Protocol>
Overrides
Error.constructor
Properties
name
name:
string
Discriminator matching the class name (EventHandlerError, etc.).
Overrides
Error.name
topStateName
topStateName:
string
Properties.topStateName when the error was constructed.
stateName
stateName:
string
Properties.currentStateName when the error was constructed.
context
context:
Context
Snapshot of State.ctx when the error was constructed.
cause?
optionalcause?:Error
Original thrown value when this error wraps a handler or lifecycle failure.
Overrides
Error.cause