A simple class that defines and argument exception.
Should be caught whenever a CmdLine is created and parsed.
Definition at line 62 of file ArgException.h.
#include <mrpt/otherlibs/tclap/ArgException.h>
Public Member Functions | |
ArgException (const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException") | |
Constructor. More... | |
virtual | ~ArgException () throw () |
Destructor. 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. |
td | - Text describing the type of ArgException it is. of the exception. |
Definition at line 91 of file ArgException.h.
|
inlinevirtual |
Destructor.
Definition at line 103 of file ArgException.h.
|
inline |
Returns the argument id.
Definition at line 113 of file ArgException.h.
|
inline |
Returns the error text.
Definition at line 108 of file ArgException.h.
|
inline |
Returns the type of the exception.
Used to explain and distinguish between different child exceptions.
Definition at line 135 of file ArgException.h.
|
inline |
Returns the arg id and error text.
Definition at line 124 of file ArgException.h.
|
private |
The argument related to this exception.
Definition at line 151 of file ArgException.h.
|
private |
The text of the exception message.
Definition at line 146 of file ArgException.h.
|
private |
Describes the type of the exception.
Used to distinguish between different child exceptions.
Definition at line 157 of file ArgException.h.
Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Tue Mar 3 09:15:16 UTC 2020 |