Add a 'ServiceNotConfiguredError' to Errors module.

This commit is contained in:
Shane Kilkelly 2017-03-21 10:57:09 +00:00
parent 1d927e5eb1
commit 8a8a5a7079

View file

@ -5,5 +5,14 @@ NotFoundError = (message) ->
return error
NotFoundError.prototype.__proto__ = Error.prototype
ServiceNotConfiguredError = (message) ->
error = new Error(message)
error.name = "ServiceNotConfiguredError"
error.__proto__ = ServiceNotConfiguredError.prototype
return error
module.exports = Errors =
NotFoundError: NotFoundError
NotFoundError: NotFoundError
ServiceNotConfiguredError: ServiceNotConfiguredError