libjmmcg
build_2783
A C++ library containing an eclectic mix of useful, advanced components.
|
#include <exception.hpp>
Public Types | |
typedef std::runtime_error | base_t |
typedef ppd::api_threading_traits< API, Mdl > | thread_traits |
typedef thread_traits::lock_traits | lock_traits |
Public Member Functions | |
exception (const tstring &r, const info::function &f, const info::revision &ri) noexcept(false) | |
exception (const tostringstream &r, const info::function &f, const info::revision &ri) noexcept(false) | |
exception (const exception &ex) noexcept(false) | |
void | operator= (exception const &)=delete |
void | operator= (exception &&)=delete |
virtual | ~exception () noexcept(true) |
virtual exit_codes::codes __fastcall | code () const noexcept(true) |
const char *__CLR_OR_THIS_CALL | what () const noexcept(true) final override |
virtual const tstring __fastcall | to_string () const noexcept(false) |
Protected Attributes | |
const thread_traits::api_params_type::pid_type | process_id |
const thread_traits::api_params_type::tid_type | thread_id |
const thread_traits::api_params_type::username_type | current_username |
Friends | |
tostream &__fastcall | operator<< (tostream &o, const exception &e) noexcept(false) |
Inheritance from "std::runtime_error" is done in case of object slicing (which can occur with exceptions) so I set the error string in the exception as best I can. Note that for derived exception classes, the error string held n "std::exception" may not have everything in it compared to the overrriden "what()". But it is better than sweet f.a.
Definition at line 78 of file exception.hpp.
typedef std::runtime_error jmmcg::exception< API, Mdl >::base_t |
Definition at line 80 of file exception.hpp.
typedef thread_traits::lock_traits jmmcg::exception< API, Mdl >::lock_traits |
Definition at line 82 of file exception.hpp.
typedef ppd::api_threading_traits<API, Mdl> jmmcg::exception< API, Mdl >::thread_traits |
Definition at line 81 of file exception.hpp.
|
inlinenoexcept |
Definition at line 42 of file exception_impl.hpp.
|
inlinenoexcept |
Definition at line 54 of file exception_impl.hpp.
|
inlinenoexcept |
Definition at line 66 of file exception_impl.hpp.
|
inlinevirtualnoexcept |
Definition at line 89 of file exception.hpp.
|
inlinevirtualnoexcept |
Reimplemented in jmmcg::crt_exception< API, Mdl >, and jmmcg::crt_exception< jmmcg::ppd::generic_traits::MS_Win32, jmmcg::ppd::heavyweight_threading >.
Definition at line 93 of file exception.hpp.
References jmmcg::exception< API, Mdl >::operator<<.
|
delete |
|
delete |
|
inlinevirtualnoexcept |
Reimplemented in jmmcg::crt_exception< API, Mdl >, jmmcg::crt_exception< jmmcg::ppd::generic_traits::MS_Win32, jmmcg::ppd::heavyweight_threading >, and jmmcg::NTUtils::win_exception.
Definition at line 79 of file exception_impl.hpp.
|
inlinefinaloverridenoexcept |
Definition at line 85 of file exception_impl.hpp.
|
friend |
Definition at line 105 of file exception.hpp.
Referenced by jmmcg::exception< API, Mdl >::code().
|
protected |
Definition at line 112 of file exception.hpp.
|
protected |
Definition at line 110 of file exception.hpp.
|
protected |
Definition at line 111 of file exception.hpp.