Scarab  v3.7.1
Project 8 C++ Utility Library
Public Member Functions | Protected Member Functions | List of all members
RuntimeError Class Reference

Does not output a diagnostic in CLI11_PARSE, but allows to return from main() with a specific error code. More...

#include <CLI11.hpp>

Inheritance diagram for RuntimeError:
Inheritance graph

Public Member Functions

 RuntimeError (std::string msg, ExitCodes exit_code)
 
 RuntimeError (std::string msg, int exit_code)
 
 RuntimeError (int exit_code=1)
 
- Public Member Functions inherited from ParseError
 ParseError (std::string msg, ExitCodes exit_code)
 
 ParseError (std::string msg, int exit_code)
 
- Public Member Functions inherited from Error
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)
 

Protected Member Functions

 RuntimeError (std::string ename, std::string msg, int exit_code)
 
 RuntimeError (std::string ename, std::string msg, ExitCodes exit_code)
 
- Protected Member Functions inherited from ParseError
 ParseError (std::string ename, std::string msg, int exit_code)
 
 ParseError (std::string ename, std::string msg, ExitCodes exit_code)
 

Detailed Description

Does not output a diagnostic in CLI11_PARSE, but allows to return from main() with a specific error code.

Definition at line 742 of file CLI11.hpp.

Constructor & Destructor Documentation

◆ RuntimeError() [1/5]

RuntimeError ( std::string  ename,
std::string  msg,
int  exit_code 
)
inlineprotected

Definition at line 743 of file CLI11.hpp.

◆ RuntimeError() [2/5]

RuntimeError ( std::string  ename,
std::string  msg,
ExitCodes  exit_code 
)
inlineprotected

Definition at line 743 of file CLI11.hpp.

◆ RuntimeError() [3/5]

RuntimeError ( std::string  msg,
ExitCodes  exit_code 
)
inline

Definition at line 743 of file CLI11.hpp.

◆ RuntimeError() [4/5]

RuntimeError ( std::string  msg,
int  exit_code 
)
inline

Definition at line 743 of file CLI11.hpp.

◆ RuntimeError() [5/5]

RuntimeError ( int  exit_code = 1)
inlineexplicit

Definition at line 744 of file CLI11.hpp.


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