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

3005.329.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 });

/@springworks/error-factory/

    Package Sidebar

    Install

    npm i @springworks/error-factory

    Weekly Downloads

    2,243

    Version

    3005.329.0

    License

    none

    Unpacked Size

    35.2 kB

    Total Files

    23

    Last publish

    Collaborators

    • springworksdev
    • springworksprime