Author: bugman Date: Mon Jun 25 11:07:47 2012 New Revision: 17046 URL: http://svn.gna.org/viewcvs/relax?rev=17046&view=rev Log: The RelaxNucleusError and RelaxSpinTypeError can now have the spin ID supplied. Modified: branches/interatomic/relax_errors.py Modified: branches/interatomic/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/branches/interatomic/relax_errors.py?rev=17046&r1=17045&r2=17046&view=diff ============================================================================== --- branches/interatomic/relax_errors.py (original) +++ branches/interatomic/relax_errors.py Mon Jun 25 11:07:47 2012 @@ -316,13 +316,19 @@ # Nucleus not set. class RelaxNucleusError(BaseError): - def __init__(self): - self.text = "The type of nucleus has not yet been set." + def __init__(self, spin_id=None): + if spin_id != None: + self.text = "The type of nucleus for the spin '%s' has not yet been set." % spin_id + else: + self.text = "The type of nucleus has not yet been set." # Spin type not set. class RelaxSpinTypeError(BaseError): - def __init__(self): - self.text = "The nuclear isotope type has not yet been set. Please use the spin.isotope user function to set the type." + def __init__(self, spin_id=None): + if spin_id != None: + self.text = "The nuclear isotope type for the spin '%s' has not yet been set. Please use the spin.isotope user function to set the type." % spin_id + else: + self.text = "The nuclear isotope type has not yet been set. Please use the spin.isotope user function to set the type." # Argument errors.