Author: bugman Date: Tue Jun 19 14:10:20 2012 New Revision: 16954 URL: http://svn.gna.org/viewcvs/relax?rev=16954&view=rev Log: Created the RelaxInteratomError and RelaxNoInteratomError classes for interatomic data errors. 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=16954&r1=16953&r2=16954&view=diff ============================================================================== --- branches/interatomic/relax_errors.py (original) +++ branches/interatomic/relax_errors.py Tue Jun 19 14:10:20 2012 @@ -651,6 +651,25 @@ self.text = "The spin information for the spin " + repr(spin_id) + " has not yet been loaded, please use the structure.load_spins user function." +# Interatomic data errors. +########################## + +# No interatomic data. +class RelaxNoInteratomError(BaseError): + def __init__(self, pipe=None): + if pipe == None: + self.text = "The interatomic data does not exist." + else: + self.text = "The interatomic data for the data pipe " + repr(pipe) + " does not exist." + +# The interatomic data already exists. +class RelaxInteratomError(BaseError): + def __init__(self, pipe=None): + if pipe == None: + self.text = "The interatomic data already exists." + else: + self.text = "The interatomic data for the data pipe " + repr(pipe) + " already exists." + # Spectral data errors.