Skip to content

Class: CommandResolutionError ​

Error raised when command routing cannot produce one consistent command.

The own registry brand is the cross-bundle contract. Unlike the legacy command-not-found guard, the new guard deliberately has no name-based fallback because this error type is new and must not classify arbitrary errors from older versions.

Extends ​

  • Error

Signature ​

ts
export class CommandResolutionError extends Error

Constructors ​

Constructor ​

ts
new CommandResolutionError(message: string, options: CommandResolutionErrorOptions = {}): CommandResolutionError;

Create a command resolution error with structured routing metadata.

Parameters ​

NameTypeDescription
messagestringHuman-readable fallback message
optionsCommandResolutionErrorOptionsError code and command-routing metadata (optional, default: {})

Returns ​

CommandResolutionError

Properties ​

NameTypeDescription
candidatePaths (readonly)readonly (readonly string[])[]
code (optional, readonly)CommandResolutionErrorCode
commandPath (readonly)readonly string[]
values (readonly)Record<string, unknown>

Released under the MIT License.