Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Errors.h File Reference
#include <exception>
Include dependency graph for Errors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PSERROR
 

Macros

#define ERROR_GROUP(a)
 
#define ERROR_SUBGROUP(a, b)
 
#define ERROR_TYPE(a, b)
 
#define ERROR_IS(a, b)   ( ((a) & MASK__PSRETURN_##b) == CODE__PSRETURN_##b )
 

Typedefs

typedef u32 PSRETURN
 

Functions

const char * GetErrorString (PSRETURN code)
 
void ThrowError (PSRETURN code)
 

Variables

const PSRETURN PSRETURN_OK = 0
 
const PSRETURN MASK__PSRETURN_OK = 0xFFFFFFFF
 
const PSRETURN CODE__PSRETURN_OK = 0
 

Macro Definition Documentation

◆ ERROR_GROUP

#define ERROR_GROUP (   a)
Value:
class PSERROR_##a : public PSERROR { protected: PSERROR_##a(const char* msg); }; \
extern const PSRETURN MASK__PSRETURN_##a; \
extern const PSRETURN CODE__PSRETURN_##a
u32 PSRETURN
Definition: Errors.h:75
Definition: Errors.h:78

◆ ERROR_IS

#define ERROR_IS (   a,
 
)    ( ((a) & MASK__PSRETURN_##b) == CODE__PSRETURN_##b )

◆ ERROR_SUBGROUP

#define ERROR_SUBGROUP (   a,
 
)
Value:
class PSERROR_##a##_##b : public PSERROR_##a { protected: PSERROR_##a##_##b(const char* msg); }; \
extern const PSRETURN MASK__PSRETURN_##a##_##b; \
extern const PSRETURN CODE__PSRETURN_##a##_##b

◆ ERROR_TYPE

#define ERROR_TYPE (   a,
 
)
Value:
class PSERROR_##a##_##b : public PSERROR_##a { public: PSERROR_##a##_##b(); PSERROR_##a##_##b(const char* msg); PSRETURN getCode() const; }; \
extern const PSRETURN MASK__PSRETURN_##a##_##b; \
extern const PSRETURN CODE__PSRETURN_##a##_##b; \
extern const PSRETURN PSRETURN_##a##_##b

Typedef Documentation

◆ PSRETURN

typedef u32 PSRETURN

Function Documentation

◆ GetErrorString()

const char * GetErrorString ( PSRETURN  code)

◆ ThrowError()

void ThrowError ( PSRETURN  code)

Variable Documentation

◆ CODE__PSRETURN_OK

const PSRETURN CODE__PSRETURN_OK = 0

◆ MASK__PSRETURN_OK

const PSRETURN MASK__PSRETURN_OK = 0xFFFFFFFF

◆ PSRETURN_OK

const PSRETURN PSRETURN_OK = 0