overleaf/services/web/app/src/Features/LinkedFiles/LinkedFilesErrors.js
Timothée Alby 8af619ac28 Merge pull request #1931 from overleaf/ta-error-type
Implement ErrorType Errors

GitOrigin-RevId: fef4d6016ad413b0de635a882e53fed6ee5f1f85
2019-07-19 09:50:57 +00:00

43 lines
1.2 KiB
JavaScript

const { BackwardCompatibleError } = require('../Errors/Errors.js')
class UrlFetchFailedError extends BackwardCompatibleError {}
class InvalidUrlError extends BackwardCompatibleError {}
class OutputFileFetchFailedError extends BackwardCompatibleError {}
class AccessDeniedError extends BackwardCompatibleError {}
class BadEntityTypeError extends BackwardCompatibleError {}
class BadDataError extends BackwardCompatibleError {}
class ProjectNotFoundError extends BackwardCompatibleError {}
class V1ProjectNotFoundError extends BackwardCompatibleError {}
class SourceFileNotFoundError extends BackwardCompatibleError {}
class NotOriginalImporterError extends BackwardCompatibleError {}
class FeatureNotAvailableError extends BackwardCompatibleError {}
class RemoteServiceError extends BackwardCompatibleError {}
class FileCannotRefreshError extends BackwardCompatibleError {}
module.exports = {
UrlFetchFailedError,
InvalidUrlError,
OutputFileFetchFailedError,
AccessDeniedError,
BadEntityTypeError,
BadDataError,
ProjectNotFoundError,
V1ProjectNotFoundError,
SourceFileNotFoundError,
NotOriginalImporterError,
FeatureNotAvailableError,
RemoteServiceError,
FileCannotRefreshError
}