overleaf/services/docstore/app/js/Errors.js

20 lines
469 B
JavaScript
Raw Normal View History

2020-07-23 18:42:49 +00: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 {}
2021-07-30 15:06:16 +00:00
class DocModifiedError extends OError {}
class DocRevValueError extends OError {}
class DocVersionDecrementedError extends OError {}
2020-07-23 18:42:49 +00:00
module.exports = {
Md5MismatchError,
2021-07-30 15:06:16 +00:00
DocModifiedError,
DocRevValueError,
DocVersionDecrementedError,
2021-07-13 11:04:48 +00:00
...Errors,
2020-07-23 18:42:49 +00:00
}