mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
7112e65dc5
Project import refactor GitOrigin-RevId: b4edc35cd4a14db0f4e6746d3da28cd94c351117
129 lines
4.1 KiB
CoffeeScript
129 lines
4.1 KiB
CoffeeScript
NotFoundError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "NotFoundError"
|
|
error.__proto__ = NotFoundError.prototype
|
|
return error
|
|
NotFoundError.prototype.__proto__ = Error.prototype
|
|
|
|
ForbiddenError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "ForbiddenError"
|
|
error.__proto__ = ForbiddenError.prototype
|
|
return error
|
|
ForbiddenError.prototype.__proto__ = Error.prototype
|
|
|
|
ServiceNotConfiguredError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "ServiceNotConfiguredError"
|
|
error.__proto__ = ServiceNotConfiguredError.prototype
|
|
return error
|
|
ServiceNotConfiguredError.prototype.__proto__ = Error.prototype
|
|
|
|
TooManyRequestsError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "TooManyRequestsError"
|
|
error.__proto__ = TooManyRequestsError.prototype
|
|
return error
|
|
TooManyRequestsError.prototype.__proto__ = Error.prototype
|
|
|
|
InvalidNameError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "InvalidNameError"
|
|
error.__proto__ = InvalidNameError.prototype
|
|
return error
|
|
InvalidNameError.prototype.__proto__ = Error.prototype
|
|
|
|
UnsupportedFileTypeError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "UnsupportedFileTypeError"
|
|
error.__proto__ = UnsupportedFileTypeError.prototype
|
|
return error
|
|
UnsupportedFileTypeError.prototype.__proto__ = Error.prototype
|
|
|
|
UnsupportedExportRecordsError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "UnsupportedExportRecordsError"
|
|
error.__proto__ = UnsupportedExportRecordsError.prototype
|
|
return error
|
|
UnsupportedExportRecordsError.prototype.__proto__ = Error.prototype
|
|
|
|
V1HistoryNotSyncedError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "V1HistoryNotSyncedError"
|
|
error.__proto__ = V1HistoryNotSyncedError.prototype
|
|
return error
|
|
V1HistoryNotSyncedError.prototype.__proto__ = Error.prototype
|
|
|
|
ProjectHistoryDisabledError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "ProjectHistoryDisabledError"
|
|
error.__proto__ = ProjectHistoryDisabledError.prototype
|
|
return error
|
|
ProjectHistoryDisabledError.prototype.__proto__ = Error.prototype
|
|
|
|
V1ConnectionError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "V1ConnectionError"
|
|
error.__proto__ = V1ConnectionError.prototype
|
|
return error
|
|
V1ConnectionError.prototype.__proto__ = Error.prototype
|
|
|
|
UnconfirmedEmailError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "UnconfirmedEmailError"
|
|
error.__proto__ = UnconfirmedEmailError.prototype
|
|
return error
|
|
UnconfirmedEmailError.prototype.__proto__ = Error.prototype
|
|
|
|
EmailExistsError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "EmailExistsError"
|
|
error.__proto__ = EmailExistsError.prototype
|
|
return error
|
|
EmailExistsError.prototype.__proto__ = Error.prototype
|
|
|
|
InvalidError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "InvalidError"
|
|
error.__proto__ = InvalidError.prototype
|
|
return error
|
|
InvalidError.prototype.__proto__ = Error.prototype
|
|
|
|
AccountMergeError = (message) ->
|
|
error = new Error(message)
|
|
error.name = "AccountMergeError"
|
|
error.__proto__ = AccountMergeError.prototype
|
|
return error
|
|
AccountMergeError.prototype.__proto__ = Error.prototype
|
|
|
|
NotInV2Error = (message) ->
|
|
error = new Error(message)
|
|
error.name = "NotInV2Error"
|
|
error.__proto__ = NotInV2Error.prototype
|
|
return error
|
|
NotInV2Error.prototype.__proto__ = Error.prototype
|
|
|
|
SLInV2Error = (message) ->
|
|
error = new Error(message)
|
|
error.name = "SLInV2Error"
|
|
error.__proto__ = SLInV2Error.prototype
|
|
return error
|
|
SLInV2Error.prototype.__proto__ = Error.prototype
|
|
|
|
module.exports = Errors =
|
|
NotFoundError: NotFoundError
|
|
ForbiddenError: ForbiddenError
|
|
ServiceNotConfiguredError: ServiceNotConfiguredError
|
|
TooManyRequestsError: TooManyRequestsError
|
|
InvalidNameError: InvalidNameError
|
|
UnsupportedFileTypeError: UnsupportedFileTypeError
|
|
UnsupportedExportRecordsError: UnsupportedExportRecordsError
|
|
V1HistoryNotSyncedError: V1HistoryNotSyncedError
|
|
ProjectHistoryDisabledError: ProjectHistoryDisabledError
|
|
V1ConnectionError: V1ConnectionError
|
|
UnconfirmedEmailError: UnconfirmedEmailError
|
|
EmailExistsError: EmailExistsError
|
|
InvalidError: InvalidError
|
|
AccountMergeError: AccountMergeError
|
|
NotInV2Error: NotInV2Error
|
|
SLInV2Error: SLInV2Error
|