Enumerations | Functions | Variables
test_try_catch.cpp File Reference

Go to the source code of this file.

Enumerations

enum  throw_type {
  throw_bool, throw_int, throw_cstr, throw_string,
  throw_exception, throw_custom_exception
}
 

Functions

void throw_bool_func ()
 
void throw_int_func ()
 
void throw_cstr_func ()
 
void throw_string_func ()
 
void throw_exception_func ()
 
void throw_custom_exception_func ()
 
std::ostream & operator<< (std::ostream &os, const raii &unused)
 
void level2 ()
 
void level1 ()
 

Variables

throw_type g_throw_type = throw_exception
 
auto g_raii_count = 0
 

Enumeration Type Documentation

◆ throw_type

enum throw_type
Enumerator
throw_bool 
throw_int 
throw_cstr 
throw_string 
throw_exception 
throw_custom_exception 

Definition at line 26 of file test_try_catch.cpp.

Function Documentation

◆ throw_bool_func()

void throw_bool_func ( )

Definition at line 48 of file test_try_catch.cpp.

◆ throw_int_func()

void throw_int_func ( )

Definition at line 52 of file test_try_catch.cpp.

◆ throw_cstr_func()

void throw_cstr_func ( )

Definition at line 56 of file test_try_catch.cpp.

◆ throw_string_func()

void throw_string_func ( )

Definition at line 60 of file test_try_catch.cpp.

◆ throw_exception_func()

void throw_exception_func ( )

Definition at line 64 of file test_try_catch.cpp.

◆ throw_custom_exception_func()

void throw_custom_exception_func ( )

Definition at line 68 of file test_try_catch.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const raii &  unused 
)

Definition at line 71 of file test_try_catch.cpp.

◆ level2()

void level2 ( )

Definition at line 80 of file test_try_catch.cpp.

◆ level1()

void level1 ( )

Definition at line 100 of file test_try_catch.cpp.

Variable Documentation

◆ g_throw_type

throw_type g_throw_type = throw_exception

Definition at line 36 of file test_try_catch.cpp.

◆ g_raii_count

auto g_raii_count = 0

Definition at line 38 of file test_try_catch.cpp.