]> git.ipfire.org Git - people/stevee/pakfire.git/blobdiff - python/pakfire/errors.py
client/daemon: Don't make internal server errors fatal for keepalives/updates.
[people/stevee/pakfire.git] / python / pakfire / errors.py
index 29103a5349c9251033a0f147c40682d0400d6132..3af257d531be3513ddd1d067f40c8d8890a280fb 100644 (file)
@@ -42,6 +42,10 @@ class BuildError(Error):
 class BuildRootLocked(Error):
        pass
 
+class CompressionError(Error):
+       message = _("Could not compress/decompress data.")
+
+
 class ConfigError(Error):
        pass
 
@@ -54,7 +58,8 @@ class DependencyError(Error):
        message = _("One or more dependencies could not been resolved.")
 
 class DownloadError(Error):
-       pass
+       message = _("An error occured when pakfire tried to download files.")
+
 
 class FileError(Error):
        pass
@@ -81,5 +86,29 @@ class PakfireContainerError(Error):
        message = _("Running pakfire-build in a pakfire container?")
 
 
+class SignatureError(Error):
+       pass
+
+
 class TransactionCheckError(Error):
        message = _("Transaction test was not successful")
+
+
+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.")