@springworks/error-factory
TypeScript icon, indicating that this package has built-in type declarations

3005.287.0 • Public • Published

@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 });

Readme

Keywords

none

Package Sidebar

Install

npm i @springworks/error-factory

Weekly Downloads

1,374

Version

3005.287.0

License

none

Unpacked Size

35.2 kB

Total Files

23

Last publish

Collaborators

  • springworksdev
  • springworksprime