Skip to main content

Class: PreconditionError

Errors thrown by preconditions

Extends​

Constructors​

new PreconditionError()​

new PreconditionError(options: Options): PreconditionError

Parameters​

ParameterType
optionsOptions

Returns​

PreconditionError

Overrides​

UserError.constructor

Defined in​

projects/framework/src/lib/errors/PreconditionError.ts:11

Properties​

context​

readonly context: unknown

User-provided context.

Inherited from​

UserError.context

Defined in​

projects/framework/src/lib/errors/UserError.ts:22


identifier​

readonly identifier: string

An identifier, useful to localize emitted errors.

Inherited from​

UserError.identifier

Defined in​

projects/framework/src/lib/errors/UserError.ts:17


precondition​

readonly precondition: Precondition<PreconditionOptions>

Defined in​

projects/framework/src/lib/errors/PreconditionError.ts:9

Accessors​

name​

Get Signature​

get name(): string

Returns​

string

This will be 'PreconditionError' and can be used to distinguish the type of error when any error gets thrown

Overrides​

UserError.name

Defined in​

projects/framework/src/lib/errors/PreconditionError.ts:17