all repos — kitten @ 7069b00b3a14cefdd48236a2ad08cb3377011751

pkgs/router/changelogs/1.4.0.md (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
# [1.4.0] 2026-07-08

in this release i added hirearchical unhandled exception handling, exceptions
can now be caught, handled, or rethrown across three separate scopes:

- local level (commands, subcommands, context menus, and components),
- builder level (shared across all commands and components produced by a
  specific builder), and
- global level (on your main Kitten instance).

you can now attach `.onError` handlers at any of these levels. if a handler
resolves without throwing, propagation stops. if it throws, the error is bubbled
up to the next tier.

these exception handlers are also context-aware! if an error is thrown midway
through middleware execution, the handler will receive whatever context was
successfully accumulated up to that point.

you can find more information under the "handling errors" section of the
[Getting Started] guide

[Getting Started]: ../GET-STARTED.md