]> git.ipfire.org Git - pakfire.git/commitdiff
errors: Drop any unused error classes
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Apr 2021 14:24:47 +0000 (14:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Apr 2021 14:24:47 +0000 (14:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/errors.py

index bc7ecfb2796a0b70bc64fa9e26ff0628b8747410..3ec0ba24d27f0af82e2d96bb7ad95e591ffe7e11 100644 (file)
@@ -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.")