src/HSLib/SpinSystem.cc
/* The following error messages use the defaults set in the Gutils package

                Case                          Error Message

		(1) 			Problems With File PNAME
		(2)			Cannot Read Parameter PNAME
    		default			Unknown Error - PNAME                */
The following error messages use the defaults set in the Gutils package
Case                          Error Message

(1)                     Problems With File PNAME
(2)                     Cannot Read Parameter PNAME
default                 Unknown Error - PNAME
The following error messages use the defaults set in the Gutils package Case Error Message ( 1 ) Problems With File PNAME ( 2 ) Cannot Read Parameter PNAME default Unknown Error - PNAME
void spin_system::SYSTerror(int eidx, const std::string& pname, int noret) const
  {
  std::string hdr("Isotropic Spin System");
  std::string msg;
  switch(eidx)
    {
    case 3:  msg = std::string("Warning - Unspecified Isotope Type(s) Set To ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 4:  msg = std::string("Warning - No Isotope Type Information: ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 10: msg = std::string("Cannot Set Electron Chemical Shift. Use gfactor!");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 102: msg = std::string("No Scalar Coupling Information ");
              GAMMAerror(hdr,msg+pname,noret);  break;	
    case 103: msg = std::string("1H Based Spectrometer Frequency Set To ");
              GAMMAerror(hdr,msg+pname+" MHz",noret);  break;
    case 104: msg = std::string("No Isotropic Chemical Shift Information: ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 106: msg = std::string("No Hyperfine Coupling Information: ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 107: msg = std::string("No G-Factor Information Avalilable: ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 108: msg = std::string("Problems Accessing Chemical Shift, Spin ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 109: msg = std::string("Problems Accessing G-Factor, Spin ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 130: msg = std::string("Parameter ") + pname + std::string(" Is The Culprit");
             GAMMAerror(hdr,msg,noret);  break;		
    case 131: msg = std::string("Requested Parameter ") + pname +
              std::string(" Return Value Is Zero");
             GAMMAerror(hdr,msg,noret);  break;		
    case 200: msg = std::string("Cannot Obtain Larmor Frequency of Spin ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 201: msg = std::string("If Setting Value, Insure Input is Double ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 300: msg = std::string("Request Not Applicable On Electon, Spin ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    case 301: msg = std::string("Request Not Applicable On Nucleus, Spin ");
             GAMMAerror(hdr,msg+pname,noret);  break;	
    default: GAMMAerror(hdr, eidx, pname, noret); break;
    }
  }
void spin_system :: SYSTerror ( int eidx , const std :: string & pname , int noret ) const { std :: string hdr ( " " ) ; std :: string msg ; switch ( eidx ) { case 3 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 4 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 10 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 102 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 103 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname + " " , noret ) ; break ; case 104 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 106 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 107 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 108 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 109 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 130 : msg = std :: string ( " " ) + pname + std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 131 : msg = std :: string ( " " ) + pname + std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 200 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 201 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 300 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; case 301 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg + pname , noret ) ; break ; default : GAMMAerror ( hdr , eidx , pname , noret ) ; break ; } }
The following error messages use the defaults set in the Gutils package
Case                          Error Message
The following error messages use the defaults set in the Gutils package Case Error Message
//		   (3) //		   (4) //		   (10) //		   (102) //		   (103) //		   (104) //		   (106) //		   (107) //		   (108) //		   (109) //		   (130) //		   (131) //		   (200) //		   (201) //		   (300) //		   (301) // Unknown Error   (-1)