meshcore.js
ReferenceClasses

ArgumentError

Defined in: packages/client/src/commands/parse-args.ts:6

Thrown while parsing a command's arguments; reason and arg say which one and why.

Extends

  • Error

Constructors

Constructor

new ArgumentError(
   reason, 
   arg, 
   detail
): ArgumentError;

Defined in: packages/client/src/commands/parse-args.ts:15

Parameters

reason

"invalid" | "missing" | "ambiguous" | "tooMany"

missing, invalid or tooMany

arg

ArgDefinition | null

Argument concerned, or null

detail

string

Human readable detail

Returns

ArgumentError

Overrides

Error.constructor

Properties

arg

readonly arg: ArgDefinition | null;

Defined in: packages/client/src/commands/parse-args.ts:7


reason

readonly reason: "invalid" | "missing" | "ambiguous" | "tooMany";

Defined in: packages/client/src/commands/parse-args.ts:8

On this page