Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.
same flag as another Arg, same name, etc.
Definition at line 175 of file ArgException.h.
#include <mrpt/otherlibs/tclap/ArgException.h>
Public Member Functions | |
SpecificationException (const std::string &text="undefined exception", const std::string &id="undefined") | |
Constructor. | |
std::string | error () const |
Returns the error text. | |
std::string | argId () const |
Returns the argument id. | |
const char * | what () const throw () |
Returns the arg id and error text. | |
std::string | typeDescription () const |
Returns the type of the exception. | |
Private Attributes | |
std::string | _errorText |
The text of the exception message. | |
std::string | _argId |
The argument related to this exception. | |
std::string | _typeDescription |
Describes the type of the exception. | |
|
inline |
Constructor.
text | - The text of the exception. |
id | - The text identifying the argument source of the exception. |
Definition at line 184 of file ArgException.h.
|
inlineinherited |
Returns the argument id.
Definition at line 77 of file ArgException.h.
References TCLAP::ArgException::_argId.
Referenced by TCLAP::StdOutput::failure().
|
inlineinherited |
Returns the error text.
Definition at line 72 of file ArgException.h.
References TCLAP::ArgException::_errorText.
Referenced by TCLAP::StdOutput::failure().
|
inlineinherited |
Returns the type of the exception.
Used to explain and distinguish between different child exceptions.
Definition at line 99 of file ArgException.h.
References TCLAP::ArgException::_typeDescription.
|
inlineinherited |
Returns the arg id and error text.
Definition at line 88 of file ArgException.h.
References TCLAP::ArgException::_argId, and TCLAP::ArgException::_errorText.
Referenced by TCLAP::DocBookOutput::failure().
|
privateinherited |
The argument related to this exception.
Definition at line 115 of file ArgException.h.
Referenced by TCLAP::ArgException::argId(), and TCLAP::ArgException::what().
|
privateinherited |
The text of the exception message.
Definition at line 110 of file ArgException.h.
Referenced by TCLAP::ArgException::error(), and TCLAP::ArgException::what().
|
privateinherited |
Describes the type of the exception.
Used to distinguish between different child exceptions.
Definition at line 121 of file ArgException.h.
Referenced by TCLAP::ArgException::typeDescription().
Page generated by Doxygen 1.9.8 for MRPT 1.4.0 SVN: at Thu Dec 14 16:54:58 UTC 2023 |