DCL 4.0
Loading...
Searching...
No Matches
Exception.cpp File Reference
#include <dcl/Config.h>
#include <dcl/_string.h>
#include <dcl/Object.h>
#include <dcl/Exception.h>
#include <dcl/Numeric.h>

Go to the source code of this file.

Functions

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO (Exception, Object) Exception
 IMPLEMENT_CLASSINFO (OutOfMemoryException, Exception) OutOfMemoryException
 IMPLEMENT_CLASSINFO (SysError, Exception) SysError
 IMPLEMENT_CLASSINFO (IOException, SysError) IOException
 IMPLEMENT_CLASSINFO (InvalidIndexException, Exception) InvalidIndexException
 IMPLEMENT_CLASSINFO (ParseException, Exception) ParseException
 IMPLEMENT_CLASSINFO (NumericConvertException, ParseException) NumericConvertException
 IMPLEMENT_CLASSINFO (GenerialException, Exception) GenerialException
 IMPLEMENT_CLASSINFO (AssertError, Exception) AssertError

Function Documentation

◆ IMPLEMENT_CLASSINFO() [1/9]

IMPLEMENT_CLASSINFO ( AssertError ,
Exception  )

Definition at line 350 of file Exception.cpp.

358 : Exception(NULL)
359{
360 __DCL_ASSERT(_filename != NULL);
361 __DCL_ASSERT(_expr != NULL);
362
363 __filename = _filename;
364 __line = _line;
365
366 __expr = _expr;
367 if (_message)
368 __message = _message;
369}
#define NULL
Definition Config.h:340
#define __DCL_ASSERT(expr)
Definition Object.h:371

◆ IMPLEMENT_CLASSINFO() [2/9]

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( Exception ,
Object  )

Definition at line 27 of file Exception.cpp.

30{
31 __pCause = _cause;
32
33#if __DCL_HAVE_ALLOC_DEBUG
34 // DCL 내부적으로 new 연산자에 대하여 메모리 검사 플래그가 false
35 // 로 되어 있다. Exception 객체는 반드시 destroy 되어야 한다.
36 DCLDebugAllocSetCheckFlag(this, true);
37#endif
38}

◆ IMPLEMENT_CLASSINFO() [3/9]

IMPLEMENT_CLASSINFO ( GenerialException ,
Exception  )

Definition at line 326 of file Exception.cpp.

329 : Exception(_cause)
330{
331}

◆ IMPLEMENT_CLASSINFO() [4/9]

IMPLEMENT_CLASSINFO ( InvalidIndexException ,
Exception  )

Definition at line 201 of file Exception.cpp.

204 : Exception(NULL)
205{
206 __message = L"invalid index key: " + _key;
207}

◆ IMPLEMENT_CLASSINFO() [5/9]

IMPLEMENT_CLASSINFO ( IOException ,
SysError  )

Definition at line 173 of file Exception.cpp.

176 : SysError(_cause)
177{
178 __message = L"\"" + _name + L"\"";
179}

◆ IMPLEMENT_CLASSINFO() [6/9]

IMPLEMENT_CLASSINFO ( NumericConvertException ,
ParseException  )

Definition at line 256 of file Exception.cpp.

264 : ParseException(_number, _sourceOffset)
265{
266 __error = InvalidNumberString;
267 __radix = _radix;
268}

◆ IMPLEMENT_CLASSINFO() [7/9]

IMPLEMENT_CLASSINFO ( OutOfMemoryException ,
Exception  )

Definition at line 84 of file Exception.cpp.

87{
88}

◆ IMPLEMENT_CLASSINFO() [8/9]

IMPLEMENT_CLASSINFO ( ParseException ,
Exception  )

Definition at line 225 of file Exception.cpp.

228 : Exception(NULL)
229{
230 __message = _message;
231 __sourceOffset = -1;
232}

◆ IMPLEMENT_CLASSINFO() [9/9]

IMPLEMENT_CLASSINFO ( SysError ,
Exception  )

Definition at line 90 of file Exception.cpp.

93 : Exception(_cause)
94{
95 __errorNo = 0;
96}