diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2008-02-05 16:24:26 -0500 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2008-02-05 16:24:26 -0500 |
commit | 6b9881532773f8e697437d8c6b92ce99477a0a43 (patch) | |
tree | 02e45ef01bde6ab2b16016a60f69ab01a196d32e /func/CommonErrors.py | |
parent | 46f897f0f33a6c1eb6d489cd8d3dc26b70035255 (diff) | |
download | func-6b9881532773f8e697437d8c6b92ce99477a0a43.tar.gz func-6b9881532773f8e697437d8c6b92ce99477a0a43.tar.xz func-6b9881532773f8e697437d8c6b92ce99477a0a43.zip |
new Func_Client_Exception and allow the the caller to specify the cert/key/ca to use for
connecting
Diffstat (limited to 'func/CommonErrors.py')
-rw-r--r-- | func/CommonErrors.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/func/CommonErrors.py b/func/CommonErrors.py index fc4e049..c76cb3d 100644 --- a/func/CommonErrors.py +++ b/func/CommonErrors.py @@ -14,6 +14,7 @@ # # Copyright 2005 Dan Williams <dcbw@redhat.com> and Red Hat, Inc. +from exceptions import Exception def canIgnoreSSLError(e): """ @@ -58,3 +59,11 @@ def canIgnoreSocketError(e): return True return False + +class Func_Client_Exception(Exception): + def __init__(self, value=None): + Exception.__init__(self) + self.value = value + def __str__(self): + return "%s" %(self.value,) + |