26 #ifndef DtCmdLine_ARG_EXCEPTION_H
27 #define DtCmdLine_ARG_EXCEPTION_H
33 #ifdef DtUSE_UTILITIES_NAMESPACE
34 namespace DtUSE_UTILITIES_NAMESPACE
53 const std::string&
id =
"undefined",
54 const std::string& td =
"Generic ArgException")
70 std::string error()
const
71 {
return ( _errorText ); }
76 std::string argId()
const
78 if ( _argId ==
"undefined" )
81 return (
"Argument: " + _argId );
87 const char* what()
const throw()
89 std::string ex = _argId +
" -- " + _errorText;
97 std::string typeDescription()
const
99 return _typeDescription;
137 const std::string&
id =
"undefined" )
140 std::string(
"Exception found while parsing " ) +
141 std::string(
"the value the Arg has been passed." ))
159 const std::string&
id =
"undefined" )
162 std::string(
"Exception found when the values ") +
163 std::string(
"on the command line do not meet ") +
164 std::string(
"the requirements of the defined ") +
165 std::string(
"Args." ))
183 const std::string&
id =
"undefined" )
186 std::string(
"Exception found when an Arg object ")+
187 std::string(
"is improperly defined by the ") +
188 std::string(
"developer." ))
195 #ifdef DtUSE_UTILITIES_NAMESPACE