Scarab  v3.4.2
Project 8 C++ Utility Library
Public Member Functions | Private Attributes | List of all members
Error Class Reference

All errors derive from this one. More...

#include <CLI11.hpp>

Inheritance diagram for Error:
Inheritance graph

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)
 

Private Attributes

int actual_exit_code
 
std::string error_name {"Error"}
 

Detailed Description

All errors derive from this one.

Definition at line 636 of file CLI11.hpp.

Constructor & Destructor Documentation

◆ Error() [1/2]

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

Definition at line 645 of file CLI11.hpp.

◆ Error() [2/2]

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

Definition at line 648 of file CLI11.hpp.

Member Function Documentation

◆ get_exit_code()

int get_exit_code ( ) const
inline

Definition at line 641 of file CLI11.hpp.

◆ get_name()

std::string get_name ( ) const
inline

Definition at line 643 of file CLI11.hpp.

Member Data Documentation

◆ actual_exit_code

int actual_exit_code
private

Definition at line 637 of file CLI11.hpp.

◆ error_name

std::string error_name {"Error"}
private

Definition at line 638 of file CLI11.hpp.


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