summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-05-21 17:34:00 -0400
committerRob Crittenden <rcritten@redhat.com>2009-05-21 17:34:00 -0400
commit13696ae18ba64beec92e0cee2c0f837fd19384e3 (patch)
tree22fce7ce36d80df1bb486fcda73be99d14d9524d /ipalib/errors.py
parenteec367b0c84ccb483388dc1b8c3c29202bd5236c (diff)
downloadfreeipa-13696ae18ba64beec92e0cee2c0f837fd19384e3.tar.gz
freeipa-13696ae18ba64beec92e0cee2c0f837fd19384e3.tar.xz
freeipa-13696ae18ba64beec92e0cee2c0f837fd19384e3.zip
Raise an exception if the certificate chain is not returned from the CA
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index 71bbedb2c..f7e01f7da 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -965,6 +965,22 @@ class Base64DecodeError(ExecutionError):
errno = 4015
format = _('Base64 decoding failed: %(reason)s')
+class RemoteRetrieveError(ExecutionError):
+ """
+ **4016** Raised when retrieving data from a remote server fails
+
+ For example:
+
+ >>> raise RemoteRetrieveError(reason="Error: Failed to get certificate chain.")
+ Traceback (most recent call last):
+ ...
+ RemoteRetrieveError: Error: Failed to get certificate chain.
+
+ """
+
+ errno = 4016
+ format = _('%(reason)s')
+
class BuiltinError(ExecutionError):
"""
**4100** Base class for builtin execution errors (*4100 - 4199*).