2020-07-23 14:42:49 -04:00
|
|
|
// import Errors from object-persistor to pass instanceof checks
|
|
|
|
const OError = require('@overleaf/o-error')
|
|
|
|
const { Errors } = require('@overleaf/object-persistor')
|
|
|
|
|
|
|
|
class Md5MismatchError extends OError {}
|
2014-04-29 06:49:09 -04:00
|
|
|
|
2021-07-30 11:06:16 -04:00
|
|
|
class DocModifiedError extends OError {}
|
|
|
|
|
2021-11-30 05:27:53 -05:00
|
|
|
class DocRevValueError extends OError {}
|
|
|
|
|
2023-03-21 09:18:16 -04:00
|
|
|
class DocVersionDecrementedError extends OError {}
|
|
|
|
|
2020-07-23 14:42:49 -04:00
|
|
|
module.exports = {
|
|
|
|
Md5MismatchError,
|
2021-07-30 11:06:16 -04:00
|
|
|
DocModifiedError,
|
2021-11-30 05:27:53 -05:00
|
|
|
DocRevValueError,
|
2023-03-21 09:18:16 -04:00
|
|
|
DocVersionDecrementedError,
|
2021-07-13 07:04:48 -04:00
|
|
|
...Errors,
|
2020-07-23 14:42:49 -04:00
|
|
|
}
|