DashboardcliCLI error class semantics

CLI error class semantics

Category: preference
Confidence: 1.00
ID: 01a08ab5-510b-7501-9d09-826b681c6307
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 1epjoDnTv88AKp3k0
Created: 2026-08-27 11:58:20
Updated: 2026-09-10 09:45:33

Content

Use ContextError for omitted required values, ResolutionError for supplied values not found, and fielded ValidationError for malformed input. Always rethrow AuthError so auto-login can trigger and HostScopeError so host-scoping rejection reaches the user; broad wrapping looks consistent but destroys these control-flow contracts. ContextError.command is one single-line usage example, with alternatives: [] when defaults are irrelevant.

Move to: