Pyrogenesis  trunk
Classes | Macros | Typedefs | Functions | Variables
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

#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:77
#define ERROR_IS (   a,
 
)    ( ((a) & MASK__PSRETURN_##b) == CODE__PSRETURN_##b )
#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
u32 PSRETURN
Definition: Errors.h:75
#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
u32 PSRETURN
Definition: Errors.h:75

Typedef Documentation

typedef u32 PSRETURN

Function Documentation

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

Variable Documentation

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