Skip to content

Interface: WirestateErrorContext ​

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:30

Describes an isolated failure reported through a container error handler.

Remarks ​

Carries the original thrown or rejected value plus what Wirestate knew at the catch site. Some fields are present only for specific sources, such as event for event handler failures.

Properties ​

container? ​

ts
readonly optional container?: Container;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:34

Container that owns the failed work, when known.


details? ​

ts
readonly optional details?: readonly unknown[];

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:39

Extra diagnostic values from the failing subsystem.


error ​

ts
readonly error: unknown;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:49

Original thrown or rejected value.


event? ​

ts
readonly optional event?: WireEvent<unknown, EventType, unknown>;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:44

Event being dispatched when an event handler failed.


instance? ​

ts
readonly optional instance?: object;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:64

Instance that owns the failed handler, when known.


instanceName? ​

ts
readonly optional instanceName?: string;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:69

Instance class name, when known.


message ​

ts
readonly message: string;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:54

Human-readable failure summary.


methodName? ​

ts
readonly optional methodName?: string | symbol;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:59

Service method that failed, when known.


source ​

ts
readonly source: WirestateErrorSource;

Defined in: src/wirestate-core/error/wirestate-error-handler.ts:74

Subsystem that caught the failure.