Class: PreconditionError
Errors thrown by preconditions
Extends
Constructors
new PreconditionError()
new PreconditionError(
options:Options):PreconditionError
Parameters
| Parameter | Type |
|---|---|
options | Options |
Returns
Overrides
Source
projects/framework/src/lib/errors/PreconditionError.ts:11
Properties
context
readonlycontext:unknown
User-provided context.
Inherited from
Source
projects/framework/src/lib/errors/UserError.ts:22
identifier
readonlyidentifier:string
An identifier, useful to localize emitted errors.
Inherited from
Source
projects/framework/src/lib/errors/UserError.ts:17
precondition
readonlyprecondition:Precondition<PreconditionOptions>
Source
projects/framework/src/lib/errors/PreconditionError.ts:9
Accessors
name
getname():string
This will be 'PreconditionError' and can be used to distinguish the type of error when any error gets thrown
Returns
string