mailr17886 - /trunk/relax_errors.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 17, 2012 - 11:31:
Author: bugman
Date: Wed Oct 17 11:30:59 2012
New Revision: 17886

URL: http://svn.gna.org/viewcvs/relax?rev=17886&view=rev
Log:
Added some special RelaxErrors for data pipe bundles.


Modified:
    trunk/relax_errors.py

Modified: trunk/relax_errors.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/relax_errors.py?rev=17886&r1=17885&r2=17886&view=diff
==============================================================================
--- trunk/relax_errors.py (original)
+++ trunk/relax_errors.py Wed Oct 17 11:30:59 2012
@@ -830,6 +830,19 @@
 # Data pipe errors.
 ###################
 
+# The data pipe bundle already exists.
+class RelaxBundleError(BaseError):
+    def __init__(self, bundle):
+        self.text = "The data pipe bundle '%s' already exists." % bundle
+
+# No data pipe bundles exist.
+class RelaxNoBundleError(BaseError):
+    def __init__(self, bundle=None):
+        if bundle != None:
+            self.text = "The data pipe bundle '%s' has not been created 
yet." % bundle
+        else:
+            self.text = "No data pipe bundles currently exist.  Please use 
the pipe.bundle user function first."
+
 # The data pipe already exists.
 class RelaxPipeError(BaseError):
     def __init__(self, pipe):




Related Messages


Powered by MHonArc, Updated Wed Oct 17 11:40:01 2012