sisi4s
Loading...
Searching...
No Matches
CLI::RuntimeError Class Reference

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

#include <CLI11.hpp>

Inheritance diagram for CLI::RuntimeError:
Collaboration diagram for CLI::RuntimeError:

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 CLI::ParseError
 ParseError (std::string msg, ExitCodes exit_code)
 
 ParseError (std::string msg, int exit_code)
 
- Public Member Functions inherited from CLI::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 CLI::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 main() to return with a specific error code.

Constructor & Destructor Documentation

◆ RuntimeError() [1/5]

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

◆ RuntimeError() [2/5]

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

◆ RuntimeError() [3/5]

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

◆ RuntimeError() [4/5]

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

◆ RuntimeError() [5/5]

CLI::RuntimeError::RuntimeError ( int  exit_code = 1)
inlineexplicit

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