libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::NTUtils::win_exception Class Reference

#include <exception.hpp>

Inheritance diagram for jmmcg::NTUtils::win_exception:
[legend]
Collaboration diagram for jmmcg::NTUtils::win_exception:
[legend]

Public Types

typedef jmmcg::crt_exception< jmmcg::ppd::generic_traits::MS_Win32, jmmcg::ppd::heavyweight_threadingbase_t
 
- Public Types inherited from jmmcg::crt_exception< jmmcg::ppd::generic_traits::MS_Win32, jmmcg::ppd::heavyweight_threading >
using base_t = exception< API, jmmcg::ppd::heavyweight_threading >
 
using thread_traits = typename base_t::thread_traits
 
- Public Types inherited from jmmcg::exception< API, Mdl >
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

 win_exception (const tstring &r, const info::function &f, const info::revision &ri)
 
 win_exception (const tostringstream &r, const info::function &f, const info::revision &ri)
 
 win_exception (const tstring &r, const unsigned long we, const info::function &f, const info::revision &ri)
 
 win_exception (const tostringstream &r, const unsigned long we, const info::function &f, const info::revision &ri)
 
 win_exception (const win_exception &ex)
 
virtual ~win_exception () noexcept(true)
 
- Public Member Functions inherited from jmmcg::crt_exception< jmmcg::ppd::generic_traits::MS_Win32, jmmcg::ppd::heavyweight_threading >
 crt_exception (const tstring &r, const info::function &f, const info::revision &ri, const unsigned long en=errno) noexcept(false)
 
 crt_exception (const tostringstream &r, const info::function &f, const info::revision &ri, const unsigned long en=errno) noexcept(false)
 
 crt_exception (const crt_exception &ex) noexcept(false)
 
void operator= (crt_exception const &)=delete
 
void operator= (crt_exception &&)=delete
 
virtual ~crt_exception () noexcept(true)
 
exit_codes::codes __fastcall code () const noexcept(true) override
 
const tstring __fastcall to_string () const noexcept(false) override
 
- Public Member Functions inherited from jmmcg::exception< API, Mdl >
 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)
 
const char *__CLR_OR_THIS_CALL what () const noexcept(true) final override
 

Static Public Member Functions

static tstring __fastcall StrFromWinErr (const unsigned long win_err)
 

Protected Member Functions

virtual const tstring __fastcall to_string () const
 

Friends

tostream &__fastcall operator<< (tostream &o, const win_exception &e)
 

Additional Inherited Members

- Protected Attributes inherited from jmmcg::exception< API, Mdl >
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
 

Detailed Description

Definition at line 65 of file exception.hpp.

Member Typedef Documentation

◆ base_t

Definition at line 67 of file exception.hpp.

Constructor & Destructor Documentation

◆ win_exception() [1/5]

jmmcg::NTUtils::win_exception::win_exception ( const tstring r,
const info::function f,
const info::revision ri 
)
inline

Definition at line 69 of file exception.hpp.

◆ win_exception() [2/5]

jmmcg::NTUtils::win_exception::win_exception ( const tostringstream r,
const info::function f,
const info::revision ri 
)
inline

Definition at line 72 of file exception.hpp.

◆ win_exception() [3/5]

jmmcg::NTUtils::win_exception::win_exception ( const tstring r,
const unsigned long  we,
const info::function f,
const info::revision ri 
)
inline

Definition at line 75 of file exception.hpp.

◆ win_exception() [4/5]

jmmcg::NTUtils::win_exception::win_exception ( const tostringstream r,
const unsigned long  we,
const info::function f,
const info::revision ri 
)
inline

Definition at line 78 of file exception.hpp.

◆ win_exception() [5/5]

jmmcg::NTUtils::win_exception::win_exception ( const win_exception ex)
inline

Definition at line 81 of file exception.hpp.

◆ ~win_exception()

virtual jmmcg::NTUtils::win_exception::~win_exception ( )
inlinevirtualnoexcept

Definition at line 85 of file exception.hpp.

Member Function Documentation

◆ StrFromWinErr()

static tstring __fastcall jmmcg::NTUtils::win_exception::StrFromWinErr ( const unsigned long  win_err)
inlinestatic

Definition at line 89 of file exception.hpp.

◆ to_string()

virtual const tstring __fastcall jmmcg::NTUtils::win_exception::to_string ( ) const
inlineprotectedvirtual

Reimplemented from jmmcg::exception< API, Mdl >.

Definition at line 105 of file exception.hpp.

Friends And Related Function Documentation

◆ operator<<

tostream& __fastcall operator<< ( tostream o,
const win_exception e 
)
friend
Todo:
Implement using the advice given in "Standard C++ IOStreams and Locales" by A.Langer & K.Kreft, page 170.

Definition at line 99 of file exception.hpp.


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