Socket
Socket
Sign inDemoInstall

@springworks/error-factory

Package Overview
Dependencies
3
Maintainers
0
Versions
432
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @springworks/error-factory

Custom error that makes use of HTTP error codes to identify different error types.


Version published
Weekly downloads
2.8K
increased by229.45%
Maintainers
0
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 25 Jun 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc