Exception class raised when an error occurs verifying a command line argument.
More...
#include <Exceptions.hpp>
|
std::unique_ptr< Argument > | m_arg |
| Copy of the argument involved in the error.
|
|
std::string | m_what |
| Description of the exception. More...
|
|
Exception class raised when an error occurs verifying a command line argument.
TAP::argument_error::argument_error |
( |
const Argument & |
arg | ) |
|
Creates the exception for the given argument, without a specified reason.
- Parameters
-
arg | The argument with an error |
TAP::argument_error::argument_error |
( |
const Argument & |
arg, |
|
|
const std::string & |
reason |
|
) |
| |
Creates the exception for the given argument, with a specified reason.
- Parameters
-
arg | The argument with an error |
reason | The reason of the error |
const Argument& TAP::argument_error::arg |
( |
| ) |
const |
|
inline |
Returns the argument triggering the error.
- Returns
- The argument triggering the error
The documentation for this class was generated from the following file: