Class: ArgumentError<T>
Defined in: projects/framework/src/lib/errors/ArgumentError.ts:9
Errors thrown by the argument parser
Since
1.0.0
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Constructors
Constructor
new ArgumentError<
T>(options:Options<T>):ArgumentError<T>
Defined in: projects/framework/src/lib/errors/ArgumentError.ts:13
Parameters
| Parameter | Type |
|---|---|
options | Options<T> |
Returns
ArgumentError<T>
Overrides
Properties
argument
readonlyargument:IArgument<T>
Defined in: projects/framework/src/lib/errors/ArgumentError.ts:10
context
readonlycontext:unknown
Defined in: projects/framework/src/lib/errors/UserError.ts:22
User-provided context.
Inherited from
identifier
readonlyidentifier:string
Defined in: projects/framework/src/lib/errors/UserError.ts:17
An identifier, useful to localize emitted errors.
Inherited from
parameter
readonlyparameter:string
Defined in: projects/framework/src/lib/errors/ArgumentError.ts:11
Accessors
name
Get Signature
get name():
string
Defined in: projects/framework/src/lib/errors/ArgumentError.ts:20
Returns
string
This will be 'ArgumentError' and can be used to distinguish the type of error when any error gets thrown