CHAN.RUN

ensure

NamedFaultError

A fault error whose name is known at the type level.

NamedFaultError<N>

Defined in: src/types.ts

A fault error whose name is known at the type level.

Extends

Type Parameters

Type Parameter
N extends string

Properties

cause?

optional cause?: unknown;

Defined in: node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.error.d.ts

Inherited from

FaultError.cause


code

readonly code: string;

Defined in: src/types.ts

Inherited from

FaultError.code


isFault

readonly isFault: true;

Defined in: src/types.ts

Inherited from

FaultError.isFault


message

message: string;

Defined in: node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts

Inherited from

FaultError.message


name

readonly name: N;

Defined in: src/types.ts

Overrides

FaultError.name


stack?

optional stack?: string;

Defined in: node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts

Inherited from

FaultError.stack