overleaf/services/docstore/app/js/Errors.js
Thomas 7bcc585465 Merge pull request #5949 from overleaf/tm-doc-rev-nan-errors
Add error for if doc revision is NaN when we check revs

GitOrigin-RevId: 22149c506c9fe1604c76e92b40ac23aca6c40f81
2021-12-01 09:03:05 +00:00

16 lines
387 B
JavaScript

// 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 {}
class DocModifiedError extends OError {}
class DocRevValueError extends OError {}
module.exports = {
Md5MismatchError,
DocModifiedError,
DocRevValueError,
...Errors,
}