mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
remove requestretry from PersistenceManager GitOrigin-RevId: 1fc9ffdfa7879d7ab4f0f4683544d09fe8526f3d
31 lines
834 B
JavaScript
31 lines
834 B
JavaScript
const OError = require('@overleaf/o-error')
|
|
|
|
class NotFoundError extends OError {}
|
|
class OpRangeNotAvailableError extends OError {}
|
|
class ProjectStateChangedError extends OError {}
|
|
class DeleteMismatchError extends OError {}
|
|
class FileTooLargeError extends OError {}
|
|
class OTTypeMismatchError extends OError {
|
|
/**
|
|
* @param {OTType} got
|
|
* @param {OTType} want
|
|
*/
|
|
constructor(got, want) {
|
|
super('ot type mismatch', { got, want })
|
|
}
|
|
}
|
|
// when the doc returned by web/API fails validation (e.g. missing/invalid fields)
|
|
class DocumentValidationError extends OError {}
|
|
class WebApiServerError extends OError {}
|
|
|
|
module.exports = {
|
|
NotFoundError,
|
|
OpRangeNotAvailableError,
|
|
ProjectStateChangedError,
|
|
DeleteMismatchError,
|
|
FileTooLargeError,
|
|
OTTypeMismatchError,
|
|
DocumentValidationError,
|
|
WebApiServerError,
|
|
}
|