Use lxml.etree to parse VINI RSpec, validate against RelaxNG schema
[sfa.git] / sfa / util / faults.py
index 5a32885..d1f070c 100644 (file)
@@ -255,3 +255,11 @@ class MissingSfaInfo(SfaFault):
     def __str__(self):
         return repr(self.value)
 
+class InvalidRSpec(SfaFault):
+    def __init__(self, value, extra = None):
+        self.value = value
+        faultString = "Invalid RSpec: %(value)s" % locals()
+        SfaFault.__init__(self, 108, faultString, extra)
+    def __str__(self):
+        return repr(self.value)
+