mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #268 from sharelatex/as-unsupported-project-error
Adds UnsupportedBrandError & UnsupportedExportRecordsError types
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user