Files
overleaf-cep/services/docstore/app/js/Errors.js
Andrew Rumble a1f1ca2028 Merge pull request #29948 from overleaf/ar/docstore-conversion-to-esm
[docstore] conversion to esm

GitOrigin-RevId: 9d255047bd7ae25f2b0b38f3a721741e8a0b7ad8
2025-12-03 09:05:42 +00:00

24 lines
528 B
JavaScript

// import Errors from object-persistor to pass instanceof checks
import OError from '@overleaf/o-error'
import { Errors } from '@overleaf/object-persistor'
class Md5MismatchError extends OError {}
class DocModifiedError extends OError {}
class DocRevValueError extends OError {}
class DocVersionDecrementedError extends OError {}
class DocWithoutLinesError extends OError {}
export default {
Md5MismatchError,
DocModifiedError,
DocRevValueError,
DocVersionDecrementedError,
DocWithoutLinesError,
...Errors,
}