summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-05-21 15:25:29 -0400
committerJason Gerard DeRose <jderose@redhat.com>2009-05-21 15:37:12 -0600
commit067b5c122c647d3ddc1c509ee85db46aaf5efc56 (patch)
treee90213ad9689f2d1b45dcc4062d4b40460071a8e /ipalib/errors.py
parent13696ae18ba64beec92e0cee2c0f837fd19384e3 (diff)
downloadfreeipa-067b5c122c647d3ddc1c509ee85db46aaf5efc56.tar.gz
freeipa-067b5c122c647d3ddc1c509ee85db46aaf5efc56.tar.xz
freeipa-067b5c122c647d3ddc1c509ee85db46aaf5efc56.zip
Add a format to the generic KerberosError class
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index f7e01f7da..3e5053c6d 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -420,9 +420,18 @@ class AuthenticationError(PublicError):
class KerberosError(AuthenticationError):
"""
**1100** Base class for Kerberos authentication errors (*1100 - 1199*).
+
+ For example:
+
+ >>> raise KerberosError(major='Unspecified GSS failure. Minor code may provide more information', minor='No credentials cache found')
+ Traceback (most recent call last):
+ ...
+ KerberosError: Kerberos error: Unspecified GSS failure. Minor code may provide more information/No credentials cache found
+
"""
errno = 1100
+ format= _('Kerberos error: %(major)s/%(minor)s')
class CCacheError(KerberosError):