Skip to content

Error handling - How to catch all unhandled errors? #150

Answered by bukhalo
Dr-Phone asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Dr-Phone, thx! Module already has hardcoded catch:

this.catch((err, ctx: Context) => {

That's not good, i know)

The only thing I can offer at the moment is to import the sources of this module to your project and make it work the way you want it to. OpenSource power 🔥

I will think about how to solve this problem in the next release. I think Exception Filters built-in functionality of will work well for that.

And, feel free for make PR.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bukhalo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #150 on December 30, 2020 11:32.