Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.
same flag as another Arg, same name, etc.
Definition at line 191 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. More... | |
std::string | error () const |
Returns the error text. More... | |
std::string | argId () const |
Returns the argument id. More... | |
const char * | what () const throw () |
Returns the arg id and error text. More... | |
std::string | typeDescription () const |
Returns the type of the exception. More... | |
Private Attributes | |
std::string | _errorText |
The text of the exception message. More... | |
std::string | _argId |
The argument related to this exception. More... | |
std::string | _typeDescription |
Describes the type of the exception. More... | |
|
inline |
Constructor.
text | - The text of the exception. |
id | - The text identifying the argument source of the exception. |
Definition at line 200 of file ArgException.h.
References TCLAP::ActionDoneException::ActionDoneException().
Referenced by TCLAP::CmdLineParseException::CmdLineParseException().
|
inlineinherited |
Returns the argument id.
Definition at line 110 of file ArgException.h.
Referenced by TCLAP::StdOutput::usage().
|
inlineinherited |
Returns the error text.
Definition at line 105 of file ArgException.h.
Referenced by TCLAP::StdOutput::usage().
|
inlineinherited |
Returns the type of the exception.
Used to explain and distinguish between different child exceptions.
Definition at line 132 of file ArgException.h.
|
inlineinherited |
Returns the arg id and error text.
Definition at line 121 of file ArgException.h.
|
privateinherited |
The argument related to this exception.
Definition at line 148 of file ArgException.h.
Referenced by TCLAP::ArgException::ArgException().
|
privateinherited |
The text of the exception message.
Definition at line 143 of file ArgException.h.
Referenced by TCLAP::ArgException::ArgException().
|
privateinherited |
Describes the type of the exception.
Used to distinguish between different child exceptions.
Definition at line 154 of file ArgException.h.
Referenced by TCLAP::ArgException::~ArgException().
Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 22:32:58 UTC 2019 |