139 packages found
Create an error with a code
Error factory with the ability to append stack traces from previous errors, as well as appending debug params to stack traces. Great if you want one appended stack trace that defines the error at many levels of your code. This concept works wonders when
- Error Factory
- Error Builder
- Stack Trace
- Debug Params
- Promise Chain
Doesn't throw an error when JSON.parse() fails, just returns undefined
Returns a JSON representation of an error (handles nested errors and calls nested toJSONs)
Easily generate "custom" error objects with addition properties which can be stringfied with JSON.stringify
Handling/creating hybrid errors. Hybrid middleware between callbacks and throws. Helpful util for modules that have hybrid APIs and want when they use promises, directly to throw the errors; when use callbacks to pass errors to first argument of this call
Test if a value is an Error object.
Copy or deep clone a value to an arbitrary depth.
Format an error message for production.
generates a string containing a message and trimmed stack from error
create error instances with a code (and props)
module for error handling in sailsjs, firts version
A simple module to make showing users an error easier
Easily ignore specific promise errors
Compute the mean error (ME) incrementally.