Skip to main content

Class: UnexpectedPositionalError

Thrown when too many positional arguments were encountered.

Extends​

Constructors​

new UnexpectedPositionalError()​

new UnexpectedPositionalError(expectedCount, input): UnexpectedPositionalError

Parameters​

• expectedCount: number

• input: string

Returns​

UnexpectedPositionalError

Overrides​

ArgumentScannerError.constructor

Defined in​

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

Properties​

cause?​

optional cause: unknown

Inherited from​

ArgumentScannerError.cause

Defined in​

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


expectedCount​

readonly expectedCount: number

Expected (maximum) count of positional arguments.

Defined in​

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


input​

readonly input: string

Command line input that triggered this error.

Defined in​

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


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


stack?​

optional stack: string

Inherited from​

ArgumentScannerError.stack

Defined in​

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