RuntimeError
Error base for failures during event dispatch, with correlated event metadata.
Extends
HsmError<Context,Protocol>
Extended by
Type Parameters
Context
Context
Domain context
Protocol
Protocol extends { } | undefined
Vocabulary interface
EventName
EventName extends keyof Protocol
Event or service key being processed
Constructors
Constructor
protectednew RuntimeError<Context,Protocol,EventName>(errorName,hsm,message,cause?):RuntimeError<Context,Protocol,EventName>
Parameters
errorName
string
hsm
State<Context, Protocol>
message
string
cause?
Error
Returns
RuntimeError<Context, Protocol, EventName>
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
eventName
eventName:
PostedEvent<Protocol,EventName>
Event or service name that was active when the failure occurred.
eventPayload
eventPayload:
EventPayload<Protocol,EventName>
Client-supplied arguments (excluding resolve/reject for services).