Author: bugman Date: Sun Apr 13 11:57:54 2008 New Revision: 5615 URL: http://svn.gna.org/viewcvs/relax?rev=5615&view=rev Log: Created two new RelaxError classes: RelaxSpinTypeError and RelaxProtonTypeError. 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=5615&r1=5614&r2=5615&view=diff ============================================================================== --- 1.3/relax_errors.py (original) +++ 1.3/relax_errors.py Sun Apr 13 11:57:54 2008 @@ -185,6 +185,21 @@ if Debug: self.save_state() +# Spin type not set. +class RelaxSpinTypeError(BaseError): + def __init__(self): + self.text = "The spin type has not yet been set. Please use the value.set() user function to set the heteronucleus type." + if Debug: + self.save_state() + +# Proton type not set. +class RelaxProtonTypeError(BaseError): + def __init__(self): + self.text = "The type of proton attached to the spin has not yet been set. Please use the value.set() user function to set the proton type." + if Debug: + self.save_state() + + # Argument errors. ##################