Exception class raised when an argument value is given but not expected. More...
#include <Exceptions.hpp>
Public Member Functions | |
argument_no_value (const Argument &arg) | |
Creates the exception for the given argument, which was given a value but does not accept one. | |
![]() | |
argument_error (const Argument &arg) | |
Creates the exception for the given argument, without a specified reason. More... | |
argument_error (const Argument &arg, const std::string &reason) | |
Creates the exception for the given argument, with a specified reason. More... | |
const Argument & | arg () const |
Returns the argument triggering the error. More... | |
![]() | |
exception (std::string what) | |
Creates the exception with the given message. More... | |
exception () | |
Creates the exception with no message. | |
const char * | what () const noexceptoverride |
See std::exception::what(). | |
Additional Inherited Members | |
![]() | |
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 argument value is given but not expected.