mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-25 02:00:07 +02:00

* [docstore] DocManager.getDocLines returns flat content * [docstore] peekDoc throws NotFoundError, skip check in HttpController * [docstore] getFullDoc throws NotFoundError, skip check in HttpController * [docstore] migrate HealthChecker to async/await * [docstore] migrate HttpController to async/await * [docstore] remove .promises/callbackify wrapper from all the modules GitOrigin-RevId: a9938b03cdd2b5e80c2c999039e8f63b20d59dc5
22 lines
539 B
JavaScript
22 lines
539 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 {}
|
|
|
|
class DocWithoutLinesError extends OError {}
|
|
|
|
module.exports = {
|
|
Md5MismatchError,
|
|
DocModifiedError,
|
|
DocRevValueError,
|
|
DocVersionDecrementedError,
|
|
DocWithoutLinesError,
|
|
...Errors,
|
|
}
|