DCL 3.7.4
Loading...
Searching...
No Matches
Exception.cpp File Reference
#include <dcl/Config.h>
#include <dcl/_string.h>
#include <dcl/Object.h>
#include <dcl/Numeric.h>
#include <dcl/Exception.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 334 of file Exception.cpp.

341 : Exception(NULL)
342{
343 __DCL_ASSERT(_filename != NULL);
344 __DCL_ASSERT(_expr != NULL);
345
346 __filename = _filename;
347 __line = _line;
348
349 __expr = _expr;
350 if (_message)
351 __message = _message;
352}
#define NULL
Definition Config.h:312
#define __DCL_ASSERT(expr)
Definition Object.h:394

◆ IMPLEMENT_CLASSINFO() [2/9]

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( Exception ,
Object  )

Definition at line 27 of file Exception.cpp.

30{
31 __cause = _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 310 of file Exception.cpp.

313 : Exception(_cause)
314{
315}

◆ IMPLEMENT_CLASSINFO() [4/9]

IMPLEMENT_CLASSINFO ( InvalidIndexException ,
Exception  )

Definition at line 193 of file Exception.cpp.

196 : Exception(NULL)
197{
198 __message = L"invalid index key: " + _key;
199}

◆ IMPLEMENT_CLASSINFO() [5/9]

IMPLEMENT_CLASSINFO ( IOException ,
SysError  )

Definition at line 165 of file Exception.cpp.

168 : SysError(_cause)
169{
170 __message = L"\"" + _name + L"\"";
171}

◆ IMPLEMENT_CLASSINFO() [6/9]

IMPLEMENT_CLASSINFO ( NumericConvertException ,
ParseException  )

Definition at line 247 of file Exception.cpp.

254 : ParseException(_number, _sourceOffset)
255{
256 __error = InvalidNumberString;
257 __radix = _radix;
258}

◆ IMPLEMENT_CLASSINFO() [7/9]

IMPLEMENT_CLASSINFO ( OutOfMemoryException ,
Exception  )

Definition at line 83 of file Exception.cpp.

86{
87}

◆ IMPLEMENT_CLASSINFO() [8/9]

IMPLEMENT_CLASSINFO ( ParseException ,
Exception  )

Definition at line 217 of file Exception.cpp.

220 : Exception(NULL)
221{
222 __message = _message;
223 __sourceOffset = -1;
224}

◆ IMPLEMENT_CLASSINFO() [9/9]

IMPLEMENT_CLASSINFO ( SysError ,
Exception  )

Definition at line 89 of file Exception.cpp.

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