UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
ug_runtime_error Class Reference

#include <ug_runtime_error.hpp>

Inheritance diagram for ug_runtime_error:
Inheritance graph
Collaboration diagram for ug_runtime_error:
Collaboration graph

Public Member Functions

 ug_runtime_error (const std::string &what_arg, int code=EXIT_FAILURE)
 
int get_code () const noexcept
 

Private Attributes

int m_code
 

Detailed Description

Definition at line 45 of file ug_runtime_error.hpp.

Constructor & Destructor Documentation

◆ ug_runtime_error()

ug_runtime_error::ug_runtime_error ( const std::string & what_arg,
int code = EXIT_FAILURE )

Definition at line 40 of file ug_runtime_error.cpp.

40 :
41 std::runtime_error(what_arg), m_code(code)
42{
43}

Member Function Documentation

◆ get_code()

int ug_runtime_error::get_code ( ) const
noexcept

Definition at line 45 of file ug_runtime_error.cpp.

46{
47 return m_code;
48}

References m_code.

Member Data Documentation

◆ m_code

int ug_runtime_error::m_code
private

Definition at line 50 of file ug_runtime_error.hpp.

Referenced by get_code().


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