]> 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 99998373ce7e47254c36b6de530d87c36c53f9d0..3af257d531be3513ddd1d067f40c8d8890a280fb 100644 (file)
@@ -42,16 +42,24 @@ class BuildError(Error):
 class BuildRootLocked(Error):
        pass
 
+class CompressionError(Error):
+       message = _("Could not compress/decompress data.")
+
+
 class ConfigError(Error):
        pass
 
+class DatabaseError(Error):
+       pass
+
 class DependencyError(Error):
        exit_code = 4
 
        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
@@ -73,3 +81,34 @@ class PackageFormatUnsupportedError(Error):
 class PakfireError(Error):
        pass
 
+
+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.")