Scarab  v2.4.9
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 exit_code
 
std::string name {"Error"}
 

Detailed Description

All errors derive from this one.

Definition at line 454 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 463 of file CLI11.hpp.

◆ Error() [2/2]

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

Definition at line 466 of file CLI11.hpp.

Member Function Documentation

◆ get_exit_code()

int get_exit_code ( ) const
inline

Definition at line 459 of file CLI11.hpp.

◆ get_name()

std::string get_name ( ) const
inline

Definition at line 461 of file CLI11.hpp.

Member Data Documentation

◆ exit_code

int exit_code
private

Definition at line 455 of file CLI11.hpp.

◆ name

std::string name {"Error"}
private

Definition at line 456 of file CLI11.hpp.


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