Function ErrorHandler

  • Parameters

    • originalError: Error
    • req: Request
    • res: Response
    • _next: NextFunction

    Returns Promise<void>