errors
Usage
import { AppError } from '@storyous/errors';
throw AppError.internal('Something went wrong.');
...
import { initErrHandler } from '@storyous/errors';
const app = new Koa();
app.use(initErrHandler(logger));
errors
import { AppError } from '@storyous/errors';
throw AppError.internal('Something went wrong.');
...
import { initErrHandler } from '@storyous/errors';
const app = new Koa();
app.use(initErrHandler(logger));
npm i @storyous/errors
22
1.0.7
ISC
32.7 kB
17