summaryrefslogtreecommitdiff
path: root/src/leap/keymanager/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/keymanager/errors.py')
-rw-r--r--src/leap/keymanager/errors.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/leap/keymanager/errors.py b/src/leap/keymanager/errors.py
index 8a9fb3c..dfff393 100644
--- a/src/leap/keymanager/errors.py
+++ b/src/leap/keymanager/errors.py
@@ -28,6 +28,15 @@ class KeyNotFound(Exception):
pass
+class KeyVersionError(KeyNotFound):
+ """
+ Raised when key was found in the keyring but the version is not supported.
+
+ It will usually mean that it was created by a newer version of KeyManager.
+ """
+ pass
+
+
class KeyAlreadyExists(Exception):
"""
Raised when attempted to create a key that already exists.