How to create custom error handlers to be used on specific routes? #5043
Answered
by
dougwilson
sadeghhosseini
asked this question in
Q&A
-
Is it possible to use custom error handlers on an instance of express.Router? What I am trying to do is to use an specific error handler for just certain routes. |
Beta Was this translation helpful? Give feedback.
Answered by
dougwilson
Nov 16, 2022
Replies: 1 comment 1 reply
-
Yes, you can use an error handler in any location you can use a middleware or handler. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sadeghhosseini
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use an error handler in any location you can use a middleware or handler.