DATAKIT API  V2025.1
util_exceptions_dtk.hpp File Reference

Go to the source code of this file.

Data Structures

class  Dtk_Exception
 
class  Dtk_LinuxSignalHandler
 This class lets you handle POSIX signals. And these systems, memory corruption doesn't throw an exception but a signal. The Dtk_LinuxSignalHandler class bypasses the signal classic process by attaching an special handler to: SIGINT => Interrupt SIGTERM => Termination SIGSEGV => Segmentation Fault SIGFPE =>Floating Point Exception Its embedded handler just throws the signal number as an exception. More...
 

Macros

#define Dtk_Catch(inExceptionType, inAction)   catch( inExceptionType ){ inAction }
 
#define Dtk_ErrorAllocationType   "Can't Allocate Memory"
 
#define Dtk_ExceptionType   "General Exception"
 
#define Dtk_NullPointerType   "NULL Pointer"
 
#define Dtk_OutOfRangeType   "Out Of Range"
 
#define Dtk_ReThrow()   throw
 
#define Dtk_Throw(inExceptionType)   throw(Dtk_Exception(__FILE__, __LINE__, inExceptionType))
 
#define Dtk_Try   try
 
#define DtkTryCatch
 

Macro Definition Documentation

◆ Dtk_Catch

#define Dtk_Catch (   inExceptionType,
  inAction 
)    catch( inExceptionType ){ inAction }

◆ Dtk_ErrorAllocationType

#define Dtk_ErrorAllocationType   "Can't Allocate Memory"

◆ Dtk_ExceptionType

#define Dtk_ExceptionType   "General Exception"

◆ Dtk_NullPointerType

#define Dtk_NullPointerType   "NULL Pointer"

◆ Dtk_OutOfRangeType

#define Dtk_OutOfRangeType   "Out Of Range"

◆ Dtk_ReThrow

#define Dtk_ReThrow ( )    throw

◆ Dtk_Throw

#define Dtk_Throw (   inExceptionType)    throw(Dtk_Exception(__FILE__, __LINE__, inExceptionType))

◆ Dtk_Try

#define Dtk_Try   try

◆ DtkTryCatch

#define DtkTryCatch