mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 08:51:38 +00:00
7bcc585465
Add error for if doc revision is NaN when we check revs GitOrigin-RevId: 22149c506c9fe1604c76e92b40ac23aca6c40f81
16 lines
387 B
JavaScript
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,
|
|
}
|