elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-adhesive/handle-error / default
default(
req
,res
,context
):Promise
<void
>
Generic error handling middleware. This should be among the final middleware to run on the error handling middleware chain.
• req: NextApiRequest
• res: NextApiResponse
• context: MiddlewareContext
<Options
>
Promise
<void
>