Tier: S (1-2 days) | Type: dx
Context. WraithError today carries a code, a context, and a docsLink, but every fix hint lives in prose on the docs site. Add a describe() method on each concrete error subclass that returns a short "what to try" string derived from context, so console output and error toasts stay useful without a docs round-trip.
Scope.
- Extend
WraithError with an optional describe(): string overrideable per subclass.
- Implement
describe() on every subclass in src/errors.ts (currently 18 classes).
- Include the docs anchor and 1-2 concrete next steps, templated with
this.context.
- Doc the pattern in
docs/errors.md.
Acceptance.
Files. src/errors.ts, test/errors.test.ts, docs/errors.md.
Tier: S (1-2 days) | Type: dx
Context.
WraithErrortoday carries acode, acontext, and adocsLink, but every fix hint lives in prose on the docs site. Add adescribe()method on each concrete error subclass that returns a short "what to try" string derived fromcontext, so console output and error toasts stay useful without a docs round-trip.Scope.
WraithErrorwith an optionaldescribe(): stringoverrideable per subclass.describe()on every subclass insrc/errors.ts(currently 18 classes).this.context.docs/errors.md.Acceptance.
describe()with a hint tailored to its contextdescribe()returns non-empty for each subclassdocs/errors.mdshows an example hint.message/.toJSON()outputFiles.
src/errors.ts,test/errors.test.ts,docs/errors.md.