Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
CLI::Error Class Reference

All errors derive from this one. More...

#include <CLI11.hpp>

Inheritance diagram for CLI::Error:
Collaboration diagram for CLI::Error:

Public Member Functions

int get_exit_code () const
 
std::string get_name () const
 
 Error (std::string name, std::string msg, int exit_code=static_cast< int >(ExitCodes::BaseClass))
 
 Error (std::string name, std::string msg, ExitCodes exit_code)
 

Detailed Description

Definition at line 568 of file CLI11.hpp.

Constructor & Destructor Documentation

◆ 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)) {}
std::string name

◆ Error() [2/2]

CLI::Error::Error ( std::string name,
std::string msg,
ExitCodes exit_code )
inline

Definition at line 580 of file CLI11.hpp.

580: Error(name, msg, static_cast<int>(exit_code)) {}
Error
Definition calc.cpp:23

Member Function Documentation

◆ get_exit_code()

int CLI::Error::get_exit_code ( ) const
inline

Definition at line 573 of file CLI11.hpp.

573{ return actual_exit_code; }
Here is the caller graph for this function:

◆ get_name()

std::string CLI::Error::get_name ( ) const
inline

Definition at line 575 of file CLI11.hpp.

575{ return error_name; }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: