Skip to main content

Class: ArgumentParseError

Thrown when underlying parameter parser throws an exception parsing some input.

Extends

Constructors

new ArgumentParseError()

new ArgumentParseError(externalFlagNameOrPlaceholder, input, exception): ArgumentParseError

Parameters

externalFlagNameOrPlaceholder: Placeholder | ExternalFlagName

input: string

exception: unknown

Returns

ArgumentParseError

Overrides

ArgumentScannerError.constructor

Defined in

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

Properties

cause?

optional cause: unknown

Inherited from

ArgumentScannerError.cause

Defined in

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


exception

readonly exception: unknown

Raw exception thrown from parse function.

Defined in

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


externalFlagNameOrPlaceholder

readonly externalFlagNameOrPlaceholder: string

External name of flag or placeholder for positional argument that was parsing this input.

Defined in

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


input

readonly input: string

Command line input that triggered this error.

Defined in

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


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