Socket
Book a DemoInstallSign in
Socket

@wiredcraft/service-error

Package Overview
Dependencies
Maintainers
18
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wiredcraft/service-error

An extended Error class which helps to initialize error and log error easily

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
18
Created
Source

ServiceError

  • Intro
  • How to use
  • License

Intro

An extended Error Class basing on es6-error. It helps you intialize the error instance with some extra fields and logging it easily.

see: https://xavierchow.github.io/talk_error_handling_in_nodejs/#/

How to use

npm i @wiredcraft/service-error

usage: https://github.com/Wiredcraft/service-error/blob/master/test/index.test.js

License

MIT

Keywords

error

FAQs

Package last updated on 23 Jul 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