Author: bugman Date: Sat Jun 28 22:27:46 2008 New Revision: 6531 URL: http://svn.gna.org/viewcvs/relax?rev=6531&view=rev Log: Created the RelaxFromXMLNotEmptyError class. Modified: 1.3/relax_errors.py Modified: 1.3/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_errors.py?rev=6531&r1=6530&r2=6531&view=diff ============================================================================== --- 1.3/relax_errors.py (original) +++ 1.3/relax_errors.py Sat Jun 28 22:27:46 2008 @@ -793,6 +793,17 @@ self.save_state() +# XML errors. +############# + +# Cannot recreate from the XML - the structure is not empty. +class RelaxFromXMLNotEmptyError(BaseError): + def __init__(self, name): + self.text = "The " + name + " data structure cannot be recreated from the XML elements as the structure is not empty." + if Debug: + self.save_state() + + # An object of all the RelaxErrors. ###################################