diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-22 17:03:48 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-03 15:29:01 -0500 |
commit | 833088955c0e6c606bc8ea96a05ddf6c3a34bc6b (patch) | |
tree | e34931d760a5341befd59a9623bf8e256af4b284 /ipalib/errors2.py | |
parent | 24b6cb89d443384cb432f01265c45bc18d9cf2fc (diff) | |
download | freeipa.git-833088955c0e6c606bc8ea96a05ddf6c3a34bc6b.tar.gz freeipa.git-833088955c0e6c606bc8ea96a05ddf6c3a34bc6b.tar.xz freeipa.git-833088955c0e6c606bc8ea96a05ddf6c3a34bc6b.zip |
More xmlrpc tweaks: xmlserver.execute() now logs non-public exceptions; xmlclient.forward() now handles socket error; fixed some Python 2.4 problems in lite-xmlrpc2.py
Diffstat (limited to 'ipalib/errors2.py')
-rw-r--r-- | ipalib/errors2.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py index dccdbe6a..04258093 100644 --- a/ipalib/errors2.py +++ b/ipalib/errors2.py @@ -370,27 +370,19 @@ class NetworkError(PublicError): For example: - >>> raise NetworkError(uri='ldap://localhost:389') + >>> raise NetworkError(uri='ldap://localhost:389', error='Connection refused') Traceback (most recent call last): ... - NetworkError: cannot connect to 'ldap://localhost:389' + NetworkError: cannot connect to 'ldap://localhost:389': Connection refused """ errno = 907 - format = _('cannot connect to %(uri)r') + format = _('cannot connect to %(uri)r: %(error)s') class ServerNetworkError(PublicError): """ **908** Raised when client catches a `NetworkError` from server. - - For example: - - >>> e = NetworkError(uri='ldap://localhost:389') - >>> raise ServerNetworkError(error=e.message, server='https://localhost') - Traceback (most recent call last): - ... - ServerNetworkError: error on server 'https://localhost': cannot connect to 'ldap://localhost:389' """ errno = 908 |