1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-02-17 18:50:51 +00:00
overleaf/services/docstore/app/js/Errors.js
Jakob Ackermann e4efe121da Merge pull request from overleaf/jpa-reject-decrement-doc-version
[docstore] reject doc updates that decrement the doc version

GitOrigin-RevId: 533cc5ece8d5684c85b2f63fa2a093c68f6b5877
2023-03-22 09:04:55 +00:00

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