Last Updated: April 23, 2016
·
243
· noodlio

Helper methods for easy error handling in NodeJS

NodeJS-ers, this might be interesting for you:

Installation

npm install simple-errors

Usage

Just make sure to require the module somewhere in your code (only once)
require('simple-errors');

Then use the factory methods for creating errors:

//simplest of errors
var err = Error.create();

View more methods here: https://www.noodl.io/market/product/P201603180016880/simple-errors-helper-methods-for-easy-error-handling-in-nodejs