git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b42c5
)
added InvalidRSpecElement fault
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 31 Aug 2011 20:10:37 +0000
(16:10 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 31 Aug 2011 20:10:37 +0000
(16:10 -0400)
sfa/util/faults.py
patch
|
blob
|
history
diff --git
a/sfa/util/faults.py
b/sfa/util/faults.py
index
07335b7
..
344da1c
100644
(file)
--- a/
sfa/util/faults.py
+++ b/
sfa/util/faults.py
@@
-270,6
+270,14
@@
class InvalidRSpec(SfaFault):
def __str__(self):
return repr(self.value)
+class InvalidRSpecElement(SfaFault):
+ def __init__(self, value, extra = None):
+ self.value = value
+ faultString = "Invalid RSpec Element: %(value)s" % locals()
+ SfaFault.__init__(self, 108, faultString, extra)
+ def __str__(self):
+ return repr(self.value)
+
class AccountNotEnabled(SfaFault):
def __init__(self, extra = None):
faultString = "Account Disabled"