Skip to content

v0.14.0 — mapError

Latest

Choose a tag to compare

@zeestack zeestack released this 29 Oct 02:55
· 2 commits to main since this release
5e4ca40

Found running dendra in production. No breaking changes.

  • .mapError() maps the app's own errors to DendraErrors in one place,
    instead of a try/catch in every handler
    (#77, found running dendra in
    production). It covers every guard and handler on every transport, after-hooks
    see the mapped code, and the original is kept as cause. New type
    ErrorMapper.

Reference: https://products.techfoundry.io/dendra/reference/router/#maperrorfn