From: Tony Mack Date: Tue, 14 Sep 2010 19:37:37 +0000 (+0000) Subject: added CertExpired fault X-Git-Tag: sfa-1.0-2~35 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=71c8d706eaca1b7f097874ee4511c5ce71c98c58;hp=f91519fa24d6aaa7ddafbaf4e8de77193d482352;p=sfa.git added CertExpired fault --- diff --git a/sfa/util/faults.py b/sfa/util/faults.py index 8bf71e81..f744a5ee 100644 --- a/sfa/util/faults.py +++ b/sfa/util/faults.py @@ -288,3 +288,10 @@ class CredentialNotVerifiable(SfaFault): SfaFault.__init__(self, 115, faultString, extra) def __str__(self): return repr(self.value) + +class CertExpired(SfaFault): + def __init__(self, value, extra=None): + self.value = value + faultString = "%s cert is expired" % value + SfaFault.__init__(self, 102, faultString, extra) +