Socket
Socket
Sign inDemoInstall

@springworks/error-factory

Package Overview
Dependencies
Maintainers
1
Versions
432
Alerts
File Explorer

Advanced tools

Socket logo

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
3K
decreased by-11.75%
Maintainers
1
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

Package last updated on 05 Nov 2020

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc