Skip to main content

Interface: Options<T>

ArgumentError.Options

The options for ArgumentError.

Since

1.0.0

Type parameters

Name
T

Hierarchy

Properties

argument

argument: IArgument<T>

The argument that caused the error.

Since

1.0.0

Defined in

projects/framework/src/lib/errors/ArgumentError.ts:35


context

Optional context: unknown

The extra context to provide more information about this error.

Since

1.0.0

Default

null

Inherited from

Omit.context

Defined in

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


identifier

Optional identifier: string

The identifier.

Since

1.0.0

Default

argument.name

Defined in

projects/framework/src/lib/errors/ArgumentError.ts:48


message

Optional message: string

The message to be passed to the Error constructor.

Since

1.0.0

Inherited from

Omit.message

Defined in

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


parameter

parameter: string

The parameter that failed to be parsed.

Since

1.0.0

Defined in

projects/framework/src/lib/errors/ArgumentError.ts:41