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;
126 ArgParseException(
const std::string& text =
"undefined exception",
127 const std::string&
id =
"undefined" )
130 std::
string(
"Exception found while parsing " ) +
131 std::
string(
"the value the Arg has been passed." ))
150 CmdLineParseException(
const std::string& text =
"undefined exception",
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 ") +
176 SpecificationException(
const std::string& text =
"undefined exception",
177 const std::string&
id =
"undefined" )
180 std::
string(
"Exception found when an Arg object ")+
181 std::
string(
"is improperly defined by the ") +
std::string _typeDescription
std::string argId() const
std::string typeDescription() const
std::string error() const
const char * what() const
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")