Errors.js 528 B

1234567891011121314151617181920212223
  1. // import Errors from object-persistor to pass instanceof checks
  2. import OError from '@overleaf/o-error'
  3. import { Errors } from '@overleaf/object-persistor'
  4. class Md5MismatchError extends OError {}
  5. class DocModifiedError extends OError {}
  6. class DocRevValueError extends OError {}
  7. class DocVersionDecrementedError extends OError {}
  8. class DocWithoutLinesError extends OError {}
  9. export default {
  10. Md5MismatchError,
  11. DocModifiedError,
  12. DocRevValueError,
  13. DocVersionDecrementedError,
  14. DocWithoutLinesError,
  15. ...Errors,
  16. }