restify-error-helper

0.0.5 • Public • Published

restify-validation-helper

Collection of helper-methods for easier input-validation in restify-apps.

errorHandler

Handles thrown exceptions of all types and wraps them in a restify-error

errorFactory

Creates a valid restify-error with custom status-code and message.

uncaughtExceptionHandler

Logs the exception and sends a 500-error to the user.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

Package Sidebar

Install

npm i restify-error-helper

Weekly Downloads

7

Version

0.0.5

License

none

Last publish

Collaborators

  • johannes.reuter