![Logo](tetiere_ht.jpg) |
DATAKIT API
V2025.1
|
|
Go to the documentation of this file.
2 #ifndef _UTIL_EXCEPTIONS_DTK_HPP
3 #define _UTIL_EXCEPTIONS_DTK_HPP
9 # define Dtk_ExceptionType "General Exception"
10 # define Dtk_OutOfRangeType "Out Of Range"
11 # define Dtk_NullPointerType "NULL Pointer"
12 # define Dtk_ErrorAllocationType "Can't Allocate Memory"
25 Dtk_Exception(
const char* inFileName,
const int inLine,
const char* inMsg )
66 struct sigaction m_SignalHandler;
69 struct sigaction m_Save_SIGINT_Handler;
70 struct sigaction m_Save_SIGTERM_Handler;
71 struct sigaction m_Save_SIGSEGV_Handler;
72 struct sigaction m_Save_SIGFPE_Handler;
74 # endif //#ifndef _MSC_VER
78 static void SignalHandler(
const int inSignal );
88 # define Dtk_Catch(inExceptionType, inAction) catch( inExceptionType ){ inAction }
91 # define Dtk_Catch(inExceptionType, inAction)
93 # define Dtk_Throw(inExceptionType) throw(Dtk_Exception(__FILE__, __LINE__, inExceptionType))
94 # define Dtk_ReThrow() throw
const char * _File
Definition: util_exceptions_dtk.hpp:44
void RestoreSignalHandler()
This method restores the classic signal handler.
Dtk_Exception(const char *inFileName, const int inLine, const char *inMsg)
Definition: util_exceptions_dtk.hpp:25
void BypassSignalHandler()
this method bypasses the classic signal handler.
int _Line
Definition: util_exceptions_dtk.hpp:45
This class lets you handle POSIX signals. And these systems, memory corruption doesn't throw an excep...
Definition: util_exceptions_dtk.hpp:61
Definition: util_exceptions_dtk.hpp:23
virtual ~Dtk_Exception()
Definition: util_exceptions_dtk.hpp:31
const char * _Msg
Definition: util_exceptions_dtk.hpp:43
virtual void WriteMsg()
Definition: util_exceptions_dtk.hpp:32