Skip to main content

Class: PreconditionError

Defined in: projects/framework/src/lib/errors/PreconditionError.ts:8

Errors thrown by preconditions

Extends

Constructors

new PreconditionError()

new PreconditionError(options: Options): PreconditionError

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

Parameters

ParameterType
optionsOptions

Returns

PreconditionError

Overrides

UserError.constructor

Properties

context

readonly context: unknown

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

User-provided context.

Inherited from

UserError.context


identifier

readonly identifier: string

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

An identifier, useful to localize emitted errors.

Inherited from

UserError.identifier


precondition

readonly precondition: Precondition

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

Accessors

name

Get Signature

get name(): string

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

Returns

string

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

Overrides

UserError.name