erroz
erroz copied to clipboard
Streamlined errors with descriptive error messages through metadata and error codes
This required some refactorings to ensure type safety. This should be a 2.0 release as it changes the exports and I had to refactor a bit of the internal structure....
Within the same application, there should not be more than one error class associated with a given error code. Erroz should detect these collisions and throw an error. ``` javascript...
Maybe we could also provide a [bunyan serializer](https://github.com/trentm/node-bunyan#serializers) for erroz which produces a nicer output. Or we could add a hint in the README.
Sometime it's useful to catch some known errors and convert them to erroz-errors. Unfortunately those errorz-erros have the stacktrace of erroz-creation. It might be helpful to add an option to...