Skip to main content

Interface: Options<T>

ArgumentError.Options

The options for ArgumentError.

since 1.0.0

Type parameters

Name
T

Hierarchy

  • Omit<Options, "identifier">

    โ†ณ Options

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:56


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:49


parameter

โ€ข parameter: string

The parameter that failed to be parsed.

since 1.0.0

Defined in

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