DATAKIT API  V2025.1
Dtk_Exception Class Reference

Public Member Functions

 Dtk_Exception (const char *inFileName, const int inLine, const char *inMsg)
 
virtual void WriteMsg ()
 
virtual ~Dtk_Exception ()
 

Protected Attributes

const char * _File
 
int _Line
 
const char * _Msg
 

Constructor & Destructor Documentation

◆ Dtk_Exception()

Dtk_Exception::Dtk_Exception ( const char *  inFileName,
const int  inLine,
const char *  inMsg 
)
26  {
27  _Msg = inMsg;
28  _File = inFileName;
29  _Line = inLine;
30  }

◆ ~Dtk_Exception()

virtual Dtk_Exception::~Dtk_Exception ( )
virtual
31 { ; }

Member Function Documentation

◆ WriteMsg()

virtual void Dtk_Exception::WriteMsg ( )
virtual
33  {
34  // # ifdef WIN32
35  // char buffer[1024] = {0};
36  // sprintf( buffer, " File : %s[%u]", _File, _Line);
37  // MessageBoxA(NULL, buffer, _Msg, 16);
38  // # else
39  // fprintf(stderr, "%s\n File : %s[%u]", _Msg, _File, _Line);
40  // # endif
41  }

Field Documentation

◆ _File

const char* Dtk_Exception::_File
protected

◆ _Line

int Dtk_Exception::_Line
protected

◆ _Msg

const char* Dtk_Exception::_Msg
protected
Dtk_Exception::_File
const char * _File
Definition: util_exceptions_dtk.hpp:44
Dtk_Exception::_Line
int _Line
Definition: util_exceptions_dtk.hpp:45
Dtk_Exception::_Msg
const char * _Msg
Definition: util_exceptions_dtk.hpp:43