/* eslint-disable no-proto, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. var UrlFetchFailedError = function(message) { const error = new Error(message) error.name = 'UrlFetchFailedError' error.__proto__ = UrlFetchFailedError.prototype return error } UrlFetchFailedError.prototype.__proto__ = Error.prototype var InvalidUrlError = function(message) { const error = new Error(message) error.name = 'InvalidUrlError' error.__proto__ = InvalidUrlError.prototype return error } InvalidUrlError.prototype.__proto__ = Error.prototype var OutputFileFetchFailedError = function(message) { const error = new Error(message) error.name = 'OutputFileFetchFailedError' error.__proto__ = OutputFileFetchFailedError.prototype return error } OutputFileFetchFailedError.prototype.__proto__ = Error.prototype var AccessDeniedError = function(message) { const error = new Error(message) error.name = 'AccessDenied' error.__proto__ = AccessDeniedError.prototype return error } AccessDeniedError.prototype.__proto__ = Error.prototype var BadEntityTypeError = function(message) { const error = new Error(message) error.name = 'BadEntityType' error.__proto__ = BadEntityTypeError.prototype return error } BadEntityTypeError.prototype.__proto__ = Error.prototype var BadDataError = function(message) { const error = new Error(message) error.name = 'BadData' error.__proto__ = BadDataError.prototype return error } BadDataError.prototype.__proto__ = Error.prototype var ProjectNotFoundError = function(message) { const error = new Error(message) error.name = 'ProjectNotFound' error.__proto__ = ProjectNotFoundError.prototype return error } ProjectNotFoundError.prototype.__proto__ = Error.prototype var V1ProjectNotFoundError = function(message) { const error = new Error(message) error.name = 'V1ProjectNotFound' error.__proto__ = V1ProjectNotFoundError.prototype return error } V1ProjectNotFoundError.prototype.__proto__ = Error.prototype var SourceFileNotFoundError = function(message) { const error = new Error(message) error.name = 'SourceFileNotFound' error.__proto__ = SourceFileNotFoundError.prototype return error } SourceFileNotFoundError.prototype.__proto__ = Error.prototype var NotOriginalImporterError = function(message) { const error = new Error(message) error.name = 'NotOriginalImporter' error.__proto__ = NotOriginalImporterError.prototype return error } NotOriginalImporterError.prototype.__proto__ = Error.prototype var FeatureNotAvailableError = function(message) { const error = new Error(message) error.name = 'FeatureNotAvailable' error.__proto__ = FeatureNotAvailableError.prototype return error } FeatureNotAvailableError.prototype.__proto__ = Error.prototype var RemoteServiceError = function(message) { const error = new Error(message) error.name = 'RemoteService' error.__proto__ = RemoteServiceError.prototype return error } RemoteServiceError.prototype.__proto__ = Error.prototype var FileCannotRefreshError = function(message) { const error = new Error(message) error.name = 'RemoteService' error.__proto__ = FileCannotRefreshError.prototype return error } FileCannotRefreshError.prototype.__proto__ = Error.prototype module.exports = { UrlFetchFailedError, InvalidUrlError, OutputFileFetchFailedError, AccessDeniedError, BadEntityTypeError, BadDataError, ProjectNotFoundError, V1ProjectNotFoundError, SourceFileNotFoundError, NotOriginalImporterError, FeatureNotAvailableError, RemoteServiceError, FileCannotRefreshError }