Class: EnumValidationError
Thrown when input fails to match the given values for an enum flag.
Extends
Constructors
new EnumValidationError()
new EnumValidationError(
externalFlagName,input,values,corrections):EnumValidationError
Parameters
• externalFlagName: ExternalFlagName
• input: string
• values: readonly string[]
• corrections: readonly string[]
Returns
Overrides
ArgumentScannerError.constructor
Defined in
packages/core/src/parameter/scanner.ts:222
Properties
cause?
optionalcause:unknown
Inherited from
Defined in
node_modules/typescript/lib/lib.es2022.error.d.ts:24
externalFlagName
readonlyexternalFlagName:string
External name of flag that was parsing this input.
Defined in
packages/core/src/parameter/scanner.ts:213
input
readonlyinput:string
Command line input that triggered this error.
Defined in
packages/core/src/parameter/scanner.ts:217
message
message:
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1077
name
name:
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1076
stack?
optionalstack:string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1078
values
readonlyvalues: readonlystring[]
All possible enum values.