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 ErrorConstructors
Constructor
ts
new CommandResolutionError(message: string, options: CommandResolutionErrorOptions = {}): CommandResolutionError;Create a command resolution error with structured routing metadata.
Parameters
| Name | Type | Description |
|---|---|---|
message | string | Human-readable fallback message |
options | CommandResolutionErrorOptions | Error code and command-routing metadata (optional, default: {}) |
Returns
Properties
| Name | Type | Description |
|---|---|---|
candidatePaths (readonly) | readonly (readonly string[])[] | |
code (optional, readonly) | CommandResolutionErrorCode | |
commandPath (readonly) | readonly string[] | |
values (readonly) | Record<string, unknown> |
