|
tclap 1.2.2
|
A simple class that defines and argument exception. More...
#include <ArgException.h>


Public Member Functions | |
| ArgException (const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException") | |
| Constructor. | |
| virtual | ~ArgException () throw () |
| Destructor. | |
| 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. | |
A simple class that defines and argument exception.
Should be caught whenever a CmdLine is created and parsed.
Definition at line 36 of file ArgException.h.
|
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 47 of file ArgException.h.
|
inlinevirtual | ||||||||||||
Destructor.
Definition at line 59 of file ArgException.h.
|
inline |
Returns the argument id.
Definition at line 69 of file ArgException.h.
|
inline |
Returns the error text.
Definition at line 64 of file ArgException.h.
|
inline |
Returns the type of the exception.
Used to explain and distinguish between different child exceptions.
Definition at line 91 of file ArgException.h.
Returns the arg id and error text.
Definition at line 80 of file ArgException.h.