Drag[en]gine Game Engine  1.0
exceptions.h File Reference

Classes

class  deeAssertion
 Assertion Exception. More...
 
class  deeDirectoryNotFound
 Directory not found Exception. More...
 
class  deeDirectoryRead
 Can not read directory Exception. More...
 
class  deeDivisionByZero
 Division by Zero Exception. More...
 
class  deeFileExists
 File does already exist Exception. More...
 
class  deeFileNotFound
 File not found Exception. More...
 
class  deeInvalidAction
 Invalid Action Exception. More...
 
class  deeInvalidFileFormat
 Invalid File Format Exception. More...
 
class  deeInvalidFormat
 Invalid Format Exception. More...
 
class  deeInvalidParam
 Invalid parameter exception. More...
 
class  deeInvalidSyntax
 Invalid Syntax Exception. More...
 
class  deeNoModuleFound
 No Module Found Exception. More...
 
class  deeNullPointer
 Null Pointer Exception. More...
 
class  deeOpenFile
 File can not be opened Exception. More...
 
class  deeOutOfBoundary
 Out of Boundary Exception. More...
 
class  deeOutOfMemory
 Out of memory exception. More...
 
class  deeReadFile
 File can not be read Exception. More...
 
class  deeScriptError
 Script Error Exception. More...
 
class  deeStackEmpty
 Empty Stack Exception. More...
 
class  deeStackOverflow
 Stack Overflow Exception. More...
 
class  deeTestFailed
 Test failed Exception. More...
 
class  deeWriteFile
 File can not be written Exception. More...
 

Macros

#define DETHROW(cls)   throw cls( __FILE__, __LINE__ )
 Throw an exception of the given type. More...
 
#define DETHROW_INFO(cls, info)   throw cls( __FILE__, __LINE__ )
 Throw an exception of the given type with additional informations. More...
 
#define DETHROWX(cls, ...)   throw cls( __FILE__, __LINE__, __VA_ARGS__ )
 Throw an exception of the given type with additional construction parameters. More...
 

Macro Definition Documentation

◆ DETHROW

#define DETHROW (   cls)    throw cls( __FILE__, __LINE__ )

Throw an exception of the given type.

The type specified has to be an exception class subclassing deException. The file and line informations are obtained from the location the macro is expanded.

Parameters
clsClass name of the exception to throw

◆ DETHROW_INFO

#define DETHROW_INFO (   cls,
  info 
)    throw cls( __FILE__, __LINE__ )

Throw an exception of the given type with additional informations.

The type specified has to be an exception class subclassing deException. The file and line informations are obtained from the location the macro is expanded. In additiona the information field of the exception is assigned the constant string 'info'.

Parameters
clsClass name of the exception to throw
infoConstant string to assign to the exception object as additional informations

◆ DETHROWX

#define DETHROWX (   cls,
  ... 
)    throw cls( __FILE__, __LINE__, __VA_ARGS__ )

Throw an exception of the given type with additional construction parameters.

The type specified has to be an exception class subclassing deException. The file and line informations are obtained from the location the macro is expanded.

Parameters
clsClass name of the exception to throw