All errors derive from this one.
More...
#include <CLI11.hpp>
Definition at line 568 of file CLI11.hpp.
◆ Error() [1/2]
CLI::Error::Error |
( |
std::string | name, |
|
|
std::string | msg, |
|
|
int | exit_code = static_cast<int>(ExitCodes::BaseClass) ) |
|
inline |
Definition at line 577 of file CLI11.hpp.
578 : runtime_error(msg), actual_exit_code(exit_code), error_name(std::move(
name)) {}
◆ Error() [2/2]
CLI::Error::Error |
( |
std::string | name, |
|
|
std::string | msg, |
|
|
ExitCodes | exit_code ) |
|
inline |
◆ get_exit_code()
int CLI::Error::get_exit_code |
( |
| ) |
const |
|
inline |
Definition at line 573 of file CLI11.hpp.
573{ return actual_exit_code; }
◆ get_name()
std::string CLI::Error::get_name |
( |
| ) |
const |
|
inline |
Definition at line 575 of file CLI11.hpp.
575{ return error_name; }
The documentation for this class was generated from the following file: