PluginReference
Errors
Failing a leaf with an exit code, a message and optional remediation.
Exports of @north-light/crouter-plugin, read from the TypeScript compiler at build time. Types re-exported from @north-light/crouter-api are documented with that package.
LeafError
class declared in errors.ts
Throw this from a handler to report an expected application error. The Fetch handler turns
it into the non-2xx error envelope crtr reads; anything else thrown becomes a 500
handler_failed. The constructor throws when code is reserved or malformed, or when
status is outside 400–599.
Prop
Type
LeafErrorOptions
interface declared in errors.ts
What a LeafError reports.
Prop
Type