25 #ifndef TCLAP_ARG_EXCEPTION_H 
   26 #define TCLAP_ARG_EXCEPTION_H 
   49                       const std::string& 
id = 
"undefined",
 
   50                       const std::string& td = 
"Generic ArgException")
 
   65         std::string 
error()
 const { 
return ( _errorText ); }
 
   72             if ( _argId == 
"undefined" )
 
   75                 return ( 
"Argument: " + _argId ); 
 
   81         const char* 
what() 
const throw() 
 
   83             static std::string ex; 
 
   84             ex = _argId + 
" -- " + _errorText;
 
   94             return _typeDescription; 
 
  103         std::string _errorText;
 
  114         std::string _typeDescription;
 
  132                            const std::string& 
id = 
"undefined" )
 
  135                             std::string( 
"Exception found while parsing " ) + 
 
  136                             std::string( 
"the value the Arg has been passed." ))
 
  154                                const std::string& 
id = 
"undefined" )
 
  157                             std::string( 
"Exception found when the values ") +
 
  158                             std::string( 
"on the command line do not meet ") +
 
  159                             std::string( 
"the requirements of the defined ") +
 
  160                             std::string( 
"Args." ))
 
  178                                 const std::string& 
id = 
"undefined" )
 
  181                             std::string(
"Exception found when an Arg object ")+
 
  182                             std::string(
"is improperly defined by the ") +
 
  183                             std::string(
"developer." )) 
 
A simple class that defines and argument exception.
virtual ~ArgException()
Destructor.
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")
Constructor.
const char * what() const
Returns the arg id and error text.
std::string typeDescription() const
Returns the type of the exception.
std::string argId() const
Returns the argument id.
std::string error() const
Returns the error text.
Thrown from within the child Arg classes when it fails to properly parse the argument it has been pas...
ArgParseException(const std::string &text="undefined exception", const std::string &id="undefined")
Constructor.
Thrown from CmdLine when the arguments on the command line are not properly specified,...
CmdLineParseException(const std::string &text="undefined exception", const std::string &id="undefined")
Constructor.
Thrown when TCLAP thinks the program should exit.
int getExitStatus() const
Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.
SpecificationException(const std::string &text="undefined exception", const std::string &id="undefined")
Constructor.