Drag[en]gine Game Engine
1.21
|
#include "exceptions/deException.h"
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 | DEASSERT_FALSE(condition) if( condition ) DETHROW_INFO( deeInvalidParam, "assertFalse(" #condition ")" ); |
Throw deeInvalidParam exception if condition is true. More... | |
#define | DEASSERT_NOTNULL(pointer) if( ! ( pointer ) ) DETHROW_INFO( deeNullPointer, "assertNotNull(" #pointer ")" ); |
Throw deeNullPointer exception if pointer is nullptr. More... | |
#define | DEASSERT_NULL(pointer) if( pointer ) DETHROW_INFO( deeInvalidParam, "assertNull(" #pointer ")" ); |
Throw deeInvalidParam exception if pointer is not nullptr. More... | |
#define | DEASSERT_TRUE(condition) if( ! ( condition ) ) DETHROW_INFO( deeInvalidParam, "assertTrue(" #condition ")" ); |
Throw deeInvalidParam exception if condition is false. More... | |
#define | DETHROW(cls) throw cls( __FILE__, __LINE__ ) |
Throw an exception of the given type. More... | |
#define | DETHROW_INFO(cls, info) throw cls( __FILE__, __LINE__, info ) |
Throw an exception of the given type with additional information. More... | |
#define | DETHROWX(cls, ...) throw cls( __FILE__, __LINE__, __VA_ARGS__ ) |
Throw an exception of the given type with additional construction parameters. More... | |
#define DEASSERT_FALSE | ( | condition | ) | if( condition ) DETHROW_INFO( deeInvalidParam, "assertFalse(" #condition ")" ); |
Throw deeInvalidParam exception if condition is true.
#define DEASSERT_NOTNULL | ( | pointer | ) | if( ! ( pointer ) ) DETHROW_INFO( deeNullPointer, "assertNotNull(" #pointer ")" ); |
Throw deeNullPointer exception if pointer is nullptr.
#define DEASSERT_NULL | ( | pointer | ) | if( pointer ) DETHROW_INFO( deeInvalidParam, "assertNull(" #pointer ")" ); |
Throw deeInvalidParam exception if pointer is not nullptr.
#define DEASSERT_TRUE | ( | condition | ) | if( ! ( condition ) ) DETHROW_INFO( deeInvalidParam, "assertTrue(" #condition ")" ); |
Throw deeInvalidParam exception if condition is false.
#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 information are obtained from the location the macro is expanded.
cls | Class name of the exception to throw |
#define DETHROW_INFO | ( | cls, | |
info | |||
) | throw cls( __FILE__, __LINE__, info ) |
Throw an exception of the given type with additional information.
The type specified has to be an exception class subclassing deException. The file and line information are obtained from the location the macro is expanded. In additiona the information field of the exception is assigned the constant string 'info'.
cls | Class name of the exception to throw |
info | Constant string to assign to the exception object as additional information |
#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 information are obtained from the location the macro is expanded.
cls | Class name of the exception to throw |