ErrorHandler: ((request: Request, response: Response, error?: Error | any) => any)
Type declaration
-
- (request: Request, response: Response, error?: Error | any): any
-
Parameters
-
request: Request
-
response: Response
-
Optional
error: Error | any
Returns any
An error handler for the mapped routes. Executed whenever an error occurs in one of the routes.