Repository navigation
How to create custom error handlers to be used on specific routes? #5043
|
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. |
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. |
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.