avocat
v2.0.0
Published
A simple library to convert objection errors to boom errors
Downloads
200
Maintainers
Readme
avocat
A library to convert Objection errors to Boom errors
Lead Maintainer: Daniel Cole
Usage
rethrow(error, [options])
Throws a Boom
error according to the Objection
error received
error
: - theObjection
error (any other types of errors are just ignored)options
: - optional object where:return
: - iftrue
will return the error instead of throwing itincludeMessage
: iftrue
the Boom error created will have it's message set to the message of the error thrown
Heavily inspired by Bounce