Type alias ErrorHandler

ErrorHandler: ((request: Request, response: Response, error?: Error | any) => any)

Type declaration

    • (request: Request, response: Response, error?: Error | any): any
    • An error handler for the mapped routes. Executed whenever an error occurs in one of the routes.

      Parameters

      • request: Request
      • response: Response
      • Optional error: Error | any

      Returns any

Generated using TypeDoc