Add unsupported file type error

This commit is contained in:
Alasdair Smith 2017-12-08 11:31:44 +00:00
parent d224e09b5e
commit 6198491e5f

View file

@ -26,8 +26,16 @@ InvalidNameError = (message) ->
return error
InvalidNameError.prototype.__proto__ = Error.prototype
UnsupportedFileType = (message) ->
error = new Error(message)
error.name = "UnsupportedFileType"
error.__proto__ = UnsupportedFileType.prototype
return error
UnsupportedFileType.prototype.__proto___ = Error.prototype
module.exports = Errors =
NotFoundError: NotFoundError
ServiceNotConfiguredError: ServiceNotConfiguredError
TooManyRequestsError: TooManyRequestsError
InvalidNameError: InvalidNameError
UnsupportedFileType: UnsupportedFileType