@springworks/error-factory
v3005.329.0
Published
Custom error that makes use of HTTP error codes to identify different error types.
Downloads
4,873
Readme
@springworks/error-factory
Custom error that makes use of HTTP error codes to identify different error types.
yarn add @springworks/error-factory
import { createError } from '@springworks/error-factory';
const err = createError({ code: 404, message: 'Could not find user', cause: db_err });