Awesome
useful-error
Enhanced Error class for creating meaningful and customizable error classes. Adds option to remove stacktrace and format the toString method.
Install
npm i useful-error --save
Usage
For more use-cases see the tests
const UsefulError = require('useful-error')
Related
- error-base: Create custom Error classes. | homepage
- error-format: Allows you to customize the toString method of passed
err
. Also adds useful… more | homepage - kind-error: Base class for easily creating meaningful and quiet by default Error classes with… more | homepage
- stacktrace-metadata: Modify given
err
object to be more useful. Addsline
,column
andfilename
… more | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.