gatelib  2.1
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
g::Exception Class Reference

Anchestor Exception class for g::lib. More...

#include <g_Exception.h>

Inheritance diagram for g::Exception:
g::UnimplemetedException

Classes

class  Context
 
class  ContextList
 

Public Member Functions

 Exception (const std::wstring &msg, const Context &context)
 
 Exception (const std::string &msg, const Context &context)
 
 Exception (const Exception &, const Context &context)
 
void showMsg () const
 
void showFullMsg () const
 
const std::wstring & getErrorMsgW () const
 
const std::string getErrorMsg () const
 
std::wstring getFullErrorMsgW () const
 
std::string getFullErrorMsg () const
 
virtual const char * getTag () const
 
const std::wstring getTagW () const
 
const ContextListgetContextList () const
 
GInt64_t getCode () const
 

Static Public Member Functions

static void do_FatalAction (const Exception &)
 
static void default_FatalAction (const Exception &)
 
static ExceptionActionPf get_ThreadFatalAction ()
 
static void set_ThreadFatalAction (ExceptionActionPf)
 
static void do_UnhandledExceptionHandling (const Exception &, const char *thread_name)
 
static void do_UnhandledExceptionHandling (const std::exception &, const char *thread_name)
 
static void do_UnhandledExceptionHandling (const char *thread_name)
 
static void generic_ExceptionCancelHandling ()
 
template<class E_T >
static void raise_Helper (E_T &aException)
 
template<class E_T >
static void do_Raise (const char *aContextStr, const char *aFile, int aLine)
 
template<class E_T >
static void do_RaiseMsg (const char *aMsg, const char *aContextStr, const char *aFile, int aLine)
 
template<class E_T >
static void do_FatalAction (const char *aMsg, const char *aContextStr, const char *aFile, int aLine)
 
template<class E_T >
static void do_Rethrow (const E_T &aInnerExc, const char *aContextStr, const char *aFile, int aLine)
 
static ExceptionActionPf get_AlternateRaiseAction ()
 
static void set_ThreadAlternateRaiseAction (ExceptionActionPf)
 
static const char * get_Tag ()
 
static void default_MsgShowAction (const Exception &)
 
static void default_MsgFullShowAction (const Exception &)
 
static ExceptionActionPf get_ThreadMsgShowAction ()
 
static void set_ThreadMsgShowAction (ExceptionActionPf)
 
static ExceptionActionPf get_ThreadMsgFullShowAction ()
 
static void set_ThreadMsgFullShowAction (ExceptionActionPf)
 

Static Public Attributes

static ExceptionActionPf msg_showAction
 
static ExceptionActionPf msg_fullShowAction
 
static ExceptionActionPf fatal_ActionPf
 
static ExceptionActionPf alternate_RaiseAction
 

Protected Attributes

std::wstring mMessage
 
GInt64_t mCode
 
ContextList mContextList
 

Detailed Description

Anchestor Exception class for g::lib.

Member Function Documentation

static void g::Exception::generic_ExceptionCancelHandling ( )
static

Should be used inside a thread for handling LINUX unwind exception after a thread.cancel() call i.e.: catch(...) { Exception::generic_ExceptionCancelHandling(); your operation after un recognized error. }


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