Skip to main content

Class: UnsatisfiedPositionalError

Thrown when positional parameter was expecting input that was not provided.

Extends

Constructors

new UnsatisfiedPositionalError()

new UnsatisfiedPositionalError(placeholder, limit?): UnsatisfiedPositionalError

Parameters

placeholder: Placeholder

limit?: [number, number]

Returns

UnsatisfiedPositionalError

Overrides

ArgumentScannerError.constructor

Defined in

packages/core/src/parameter/scanner.ts:301

Properties

cause?

optional cause: unknown

Inherited from

ArgumentScannerError.cause

Defined in

node_modules/typescript/lib/lib.es2022.error.d.ts:24


limit?

readonly optional limit: [number, number]

If specified, indicates the minimum number of arguments that are expected and the last argument count.

Defined in

packages/core/src/parameter/scanner.ts:300


message

message: string

Inherited from

ArgumentScannerError.message

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1077


name

name: string

Inherited from

ArgumentScannerError.name

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1076


placeholder

readonly placeholder: string

Placeholder for positional argument that was active when this error was thrown.

Defined in

packages/core/src/parameter/scanner.ts:296


stack?

optional stack: string

Inherited from

ArgumentScannerError.stack

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1078