Go to the documentation of this file.
   15 #ifndef TCLAP_ARG_EXCEPTION_H 
   16 #define TCLAP_ARG_EXCEPTION_H 
   30 class ArgException : 
public std::exception
 
   41                 ArgException( 
const std::string& text = 
"undefined exception",
 
   42                                           const std::string& 
id = 
"undefined",
 
   43                                           const std::string& td = 
"Generic ArgException")
 
   63                 std::string 
argId()
 const 
   65                         if ( 
_argId == 
"undefined" )
 
   68                                 return ( 
"Argument: " + 
_argId );
 
   74                 const char* 
what() 
const throw()
 
   76                         static std::string ex;
 
  127                                                const std::string& 
id = 
"undefined" )
 
  130                                                         std::string( 
"Exception found while parsing " ) +
 
  131                                                         std::string( 
"the value the Arg has been passed." ))
 
  141 class CmdLineParseException : 
public ArgException
 
  151                                                    const std::string& 
id = 
"undefined" )
 
  154                                                         std::string( 
"Exception found when the values ") +
 
  155                                                         std::string( 
"on the command line do not meet ") +
 
  156                                                         std::string( 
"the requirements of the defined ") +
 
  157                                                         std::string( 
"Args." ))
 
  167 class SpecificationException : 
public ArgException
 
  177                                                     const std::string& 
id = 
"undefined" )
 
  180                                                         std::string(
"Exception found when an Arg object ")+
 
  181                                                         std::string(
"is improperly defined by the ") +
 
  182                                                         std::string(
"developer." ))
 
  
CmdLineParseException(const std::string &text="undefined exception", const std::string &id="undefined")
SpecificationException(const std::string &text="undefined exception", const std::string &id="undefined")
Defines the exception that is thrown whenever a command line is created and parsed.
std::string _typeDescription
Defines the exception that is thrown when an argument is improperly parsed.
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")
const char * what() const
ArgParseException(const std::string &text="undefined exception", const std::string &id="undefined")
std::string argId() const
std::string error() const
std::string typeDescription() const
ecl_command_line
Author(s): Daniel Stonier 
autogenerated on Wed Mar 2 2022 00:16:13