Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
Errors.h File Reference
#include <exception>

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

Definition at line 87 of file Errors.h.

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

Definition at line 101 of file Errors.h.

#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

Definition at line 91 of file Errors.h.

#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

Definition at line 96 of file Errors.h.

Typedef Documentation

typedef u32 PSRETURN

Definition at line 75 of file Errors.h.

Function Documentation

const char* GetErrorString ( PSRETURN  code)

Definition at line 458 of file Errors.cpp.

void ThrowError ( PSRETURN  code)

Definition at line 513 of file Errors.cpp.

Variable Documentation

const PSRETURN CODE__PSRETURN_OK = 0

Definition at line 105 of file Errors.h.

const PSRETURN MASK__PSRETURN_OK = 0xFFFFFFFF

Definition at line 104 of file Errors.h.

const PSRETURN PSRETURN_OK = 0

Definition at line 103 of file Errors.h.