• Express compatible error handler.

    Parameters

    • Optional options: {
          shouldHandleError?(this, error) => boolean;
      }
      • shouldHandleError?:function
        • Callback method deciding whether error should be captured and sent to Sentry

          Parameters

          • this: void
          • error: MiddlewareError

            Captured middleware error

          Returns boolean

    Returns ((error, req, res, next) => void)

      • (error, req, res, next): void
      • Parameters

        • error: MiddlewareError
        • req: http.IncomingMessage
        • res: http.ServerResponse
        • next: ((error) => void)
            • (error): void
            • Parameters

              • error: MiddlewareError

              Returns void

        Returns void

    See

    Exposed as Handlers.errorHandler

Generated using TypeDoc