From: Michael Tremer Date: Tue, 6 Apr 2021 14:24:47 +0000 (+0000) Subject: errors: Drop any unused error classes X-Git-Tag: 0.9.28~1285^2~433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be5e3746d816e2f6743ca0d6d44f0e00cc129e7;p=pakfire.git errors: Drop any unused error classes Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/errors.py b/src/pakfire/errors.py index bc7ecfb27..3ec0ba24d 100644 --- a/src/pakfire/errors.py +++ b/src/pakfire/errors.py @@ -26,148 +26,23 @@ from ._pakfire import ( DependencyError, ) -class commandTimeoutExpired(Exception): - pass # XXX cannot be as is - class Error(Exception): exit_code = 1 message = _("An unhandled error occured.") -class ActionError(Error): - pass - -class BuildAbortedException(Error): - pass - class BuildError(Error): pass -class CompressionError(Error): - message = _("Could not compress/decompress data.") - - -class ConfigError(Error): - pass - -class DatabaseError(Error): - pass - class DownloadError(Error): message = _("An error occured when pakfire tried to download files.") -class FileError(Error): - pass - -class FileNotFoundError(Error): - pass - -class OfflineModeError(Error): - message = _("The requested action cannot be done on offline mode.\n" - "Please connect your system to the network, remove --offline from the" - " command line and try again.") - -class PackageFormatUnsupportedError(Error): - pass - -class PakfireError(Error): - pass - - -class PakfireContainerError(Error): - message = _("Running pakfire-build in a pakfire container?") - - -class ShellEnvironmentError(Error): - pass - - -class SignatureError(Error): - pass - - -class TransactionCheckError(Error): - message = _("Transaction test was not successful") - - class TransportError(Error): pass -class TransportBadGatewayError(TransportError): - pass - - -class TransportConnectionError(TransportError): - pass - - -class TransportConnectionDNSError(TransportConnectionError): - pass - - -class TransportConnectionProxyError(TransportConnectionError): - pass - - -class TransportConnectionReadError(TransportConnectionError): - pass - - -class TransportConnectionResetError(TransportConnectionError): - pass - - -class TransportConnectionTimeoutError(TransportConnectionError): - pass - - -class TransportConnectionWriteError(TransportConnectionError): - pass - - -class TransportSSLError(TransportConnectionError): - pass - - -class TransportSSLCertificateExpiredError(TransportSSLError): - pass - - -class TransportInternalServerError(TransportError): - pass - - -class TransportForbiddenError(TransportError): - pass - - class TransportMaxTriesExceededError(TransportError): pass - - -class TransportNotFoundError(TransportError): - pass - - -class XMLRPCError(Error): - message = _("Generic XMLRPC error.") - - -class XMLRPCForbiddenError(XMLRPCError): - message = _("You are forbidden to perform this action. Maybe you need to check your credentials.") - - -class XMLRPCInternalServerError(XMLRPCError): - message = _("A request could not be fulfilled by the server.") - - -class XMLRPCNotFoundError(XMLRPCError): - message = _("Could not find the requested URL.") - - -class XMLRPCTransportError(XMLRPCError): - message = _("An unforseable problem on the XML-RPC transport connection occured.")