Exception: Abqari::UserError
- Inherits:
-
StandardError
- Object
- StandardError
- Abqari::UserError
- Defined in:
- lib/abqari.rb
Overview
An expected, actionable failure: the user mistyped a config key, left invalid YAML in a file, passed a bad flag. NOT an engine bug.
The distinction is the whole point. Entry points print these as a
plain message and exit 1; everything else keeps its backtrace,
because an unexpected exception is a defect and hiding its trace
makes it unreportable. Raising UserError is therefore a claim:
"the message alone tells the user what to fix."