Interface: InternalErrorDescriptor
Defined in: src/wirestate-core/error/internal-error-handler.ts:30
Describes an isolated failure reported through a container error handler.
Remarks
The descriptor carries the original thrown or rejected value plus the Wirestate context known at the catch site. Some fields are present only for specific sources, such as event for event handler failures.
Properties
container?
readonly optional container?: ContainerKernel;Defined in: src/wirestate-core/error/internal-error-handler.ts:34
Container that owns the failed work, when known.
details?
readonly optional details?: readonly unknown[];Defined in: src/wirestate-core/error/internal-error-handler.ts:39
Extra diagnostic values from the failing subsystem.
error
readonly error: unknown;Defined in: src/wirestate-core/error/internal-error-handler.ts:49
Original thrown or rejected value.
event?
readonly optional event?: WireEvent<unknown, EventType, unknown>;Defined in: src/wirestate-core/error/internal-error-handler.ts:44
Event being dispatched when an event handler failed.
instance?
readonly optional instance?: object;Defined in: src/wirestate-core/error/internal-error-handler.ts:64
Instance that owns the failed handler, when known.
instanceName?
readonly optional instanceName?: string;Defined in: src/wirestate-core/error/internal-error-handler.ts:69
Instance class name, when known.
message
readonly message: string;Defined in: src/wirestate-core/error/internal-error-handler.ts:54
Human-readable failure summary.
methodName?
readonly optional methodName?: string | symbol;Defined in: src/wirestate-core/error/internal-error-handler.ts:59
Service method that failed, when known.
source
readonly source: InternalErrorSource;Defined in: src/wirestate-core/error/internal-error-handler.ts:74
Subsystem that caught the failure.