mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-03 17:22:18 +00:00
Merge pull request #268 from sharelatex/as-unsupported-project-error
Adds UnsupportedBrandError & UnsupportedExportRecordsError types
This commit is contained in:
commit
d5c5d9c204
1 changed files with 16 additions and 0 deletions
|
@ -33,9 +33,25 @@ UnsupportedFileTypeError = (message) ->
|
|||
return error
|
||||
UnsupportedFileTypeError.prototype.__proto___ = Error.prototype
|
||||
|
||||
UnsupportedBrandError = (message) ->
|
||||
error = new Error(message)
|
||||
error.name = "UnsupportedBrandError"
|
||||
error.__proto__ = UnsupportedBrandError.prototype
|
||||
return error
|
||||
UnsupportedBrandError.prototype.__proto___ = Error.prototype
|
||||
|
||||
UnsupportedExportRecordsError = (message) ->
|
||||
error = new Error(message)
|
||||
error.name = "UnsupportedExportRecordsError"
|
||||
error.__proto__ = UnsupportedExportRecordsError.prototype
|
||||
return error
|
||||
UnsupportedExportRecordsError.prototype.__proto___ = Error.prototype
|
||||
|
||||
module.exports = Errors =
|
||||
NotFoundError: NotFoundError
|
||||
ServiceNotConfiguredError: ServiceNotConfiguredError
|
||||
TooManyRequestsError: TooManyRequestsError
|
||||
InvalidNameError: InvalidNameError
|
||||
UnsupportedFileTypeError: UnsupportedFileTypeError
|
||||
UnsupportedBrandError: UnsupportedBrandError
|
||||
UnsupportedExportRecordsError: UnsupportedExportRecordsError
|
||||
|
|
Loading…
Reference in a new issue