summaryrefslogtreecommitdiff
path: root/src/leap/common/keymanager/errors.py
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@leap.se>2013-05-13 10:00:39 -0300
committerTomas Touceda <chiiph@leap.se>2013-05-13 10:00:39 -0300
commit2784a01a4d12dca8ad4c66bac3125c692cee44ef (patch)
tree73ec3ef926a90a7fd5a93d9572ec476a4845e5cd /src/leap/common/keymanager/errors.py
parent779afe2e830a48e91a9bda6dc8cd8b35ce555ed5 (diff)
parent8aa61059ecab25888d97aa26bcd59c0ffd09b9e9 (diff)
Merge remote-tracking branch 'drebs/feature/2488-openpgp-sign-3' into develop
Diffstat (limited to 'src/leap/common/keymanager/errors.py')
-rw-r--r--src/leap/common/keymanager/errors.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/leap/common/keymanager/errors.py b/src/leap/common/keymanager/errors.py
index 1cf506e..f712975 100644
--- a/src/leap/common/keymanager/errors.py
+++ b/src/leap/common/keymanager/errors.py
@@ -25,12 +25,14 @@ class KeyNotFound(Exception):
"""
Raised when key was no found on keyserver.
"""
+ pass
class KeyAlreadyExists(Exception):
"""
Raised when attempted to create a key that already exists.
"""
+ pass
class KeyAttributesDiffer(Exception):
@@ -38,9 +40,35 @@ class KeyAttributesDiffer(Exception):
Raised when trying to delete a key but the stored key differs from the key
passed to the delete_key() method.
"""
+ pass
class NoPasswordGiven(Exception):
"""
Raised when trying to perform some action that needs a password without
providing one.
"""
+ pass
+
+class InvalidSignature(Exception):
+ """
+ Raised when signature could not be verified.
+ """
+ pass
+
+class EncryptionFailed(Exception):
+ """
+ Raised upon failures of encryption.
+ """
+ pass
+
+class DecryptionFailed(Exception):
+ """
+ Raised upon failures of decryption.
+ """
+ pass
+
+class SignFailed(Exception):
+ """
+ Raised when failed to sign.
+ """
+ pass