new-error
A production-grade error creation and serialization library designed for Typescript
A production-grade error creation and serialization library designed for Typescript
Enforce required parameters or options in ES6.
If X, return Y, else throw Z.
Conditional promise catch handler
Promisified HTTP client
Try to parse a string as JSON and return undefined on failure
Throw the error in the next tick
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
Custom errors for HTTP status codes.
Capture error stacks in asynchronous functions at the point of call.
Throws something if it’s an Error; otherwise returns it.
TODO
TODO
TODO
TODO
TODO
Simple date parse util, throws error or returns null if date is invalid
Meaning error middleware
Give some meaning to throw errors
Resultful type symbols