Variable setupKoaErrorHandlerConst
setupKoaErrorHandler: (
app: { use: (arg0: (ctx: any, next: any) => Promise<void>) => void },
) => void
Type Declaration
- (app: { use: (arg0: (ctx: any, next: any) => Promise<void>) => void }): void
Parameters
- app: { use: (arg0: (ctx: any, next: any) => Promise<void>) => void }
Returns void
Add an Koa error handler to capture errors to Sentry.
The error handler must be before any other middleware and after all controllers.