Author: bugman Date: Fri Sep 6 15:18:45 2013 New Revision: 20898 URL: http://svn.gna.org/viewcvs/relax?rev=20898&view=rev Log: Created the new RelaxNoPeakIntensityError error object. Modified: trunk/lib/errors.py Modified: trunk/lib/errors.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/errors.py?rev=20898&r1=20897&r2=20898&view=diff ============================================================================== --- trunk/lib/errors.py (original) +++ trunk/lib/errors.py Fri Sep 6 15:18:45 2013 @@ -751,6 +751,14 @@ # Spectral data errors. ####################### +# No peak intensity data. +class RelaxNoPeakIntensityError(BaseError): + def __init__(self, spectrum_id=None): + if spectrum_id == None: + self.text = "No peak intensity data has been loaded." + else: + self.text = "Peak intensity data for the '%s' spectrum ID does not exist." + # No spectral data. class RelaxNoSpectraError(BaseError): def __init__(self, spectrum_id):