15 #ifndef TCLAP_ARG_EXCEPTION_H 16 #define TCLAP_ARG_EXCEPTION_H 42 const std::string&
id =
"undefined",
43 const std::string& td =
"Generic ArgException")
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." ))
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." ))
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." ))
std::string typeDescription() const
std::string error() const
Defines the exception that is thrown when an argument is improperly parsed.
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.
const char * what() const
CmdLineParseException(const std::string &text="undefined exception", const std::string &id="undefined")
std::string _typeDescription
ArgParseException(const std::string &text="undefined exception", const std::string &id="undefined")
Defines the exception when an argument is improperly specified.
std::string argId() const
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")
Defines the exception that is thrown whenever a conflict in arguments occurs.