20 #ifndef SDLGUIEXCEPTION_H 21 #define SDLGUIEXCEPTION_H 28 #include "SDL_opengl.h" 30 #define SDLGUIERROR(error,details) sdltk::Exception ((details), __FILE__, __LINE__) 31 #define SDLGUICERROR(eno,error,details) sdltk::Exception (eno, (details), __FILE__, __LINE__) 32 #define EXCLF __FILE__, __LINE__ 33 #define EXCSDL(error) sdltk::ExcSDL((error), SDL_GetError(), EXCLF); 34 #define EXCGL(error) sdltk::ExcGL((error), oglGetError(), EXCLF); 49 Exception(
const char* details=0,
const char* file=0,
int line=0);
50 Exception(
const char* message,
const char* details=0,
const char* file=0,
int line=0,
bool eno=
false);
51 Exception(
const char* section,
const char* message,
const char* details=0,
const char* file=0,
int line=0);
52 Exception(
const char* section,
const char* message,
GLenum glerr,
const char* file=0,
int line=0);
55 void init(
bool eno,
const char* details,
const char* file,
int line);
74 void init(
bool eno,
const char* message,
const char* details,
const char* file,
int line);
81 ExcSDL(
const char* message=0,
const char* details=0,
const char* file=0,
int line=0)
82 :
Exception(
"[SDL]", message, details, file, line) {}
91 ExcGL(
const char* message=0,
GLenum glerr=0,
const char* file=0,
int line=0)
92 :
Exception(
"[OpenGL]", message, glerr, file, line) {}
String mFile
Definition: exception.h:69
~ExcSDL()
Definition: exception.h:84
String mDetails
Definition: exception.h:70
String mMsg
Definition: exception.h:68
Definition: exception.h:78
Handles all Exceptions.
Definition: exception.h:45
virtual void printError()
Definition: exception.cpp:109
GLenum
Definition: glfunclist.h:7
const char * getDetails() const
Definition: exception.h:60
GLenum mGLErr
Definition: exception.h:71
Definition: exception.h:88
ExcGL(const char *message=0, GLenum glerr=0, const char *file=0, int line=0)
Definition: exception.h:91
int mError
Definition: exception.h:65
int mLine
Definition: exception.h:66
~ExcGL()
Definition: exception.h:94
Exception(const char *details=0, const char *file=0, int line=0)
Definition: exception.cpp:27
ExcSDL(const char *message=0, const char *details=0, const char *file=0, int line=0)
Definition: exception.h:81
int getLine() const
Definition: exception.h:57
virtual ~Exception()
Definition: exception.h:53
String mSection
Definition: exception.h:67
const char * getFile() const
Definition: exception.h:58
GLenum getEnum() const
Definition: exception.h:96
std::string String
Definition: types.h:29
the SDL based Stuff
Definition: audio.cpp:22
const char * getMessage() const
Definition: exception.h:59
void init(bool eno, const char *details, const char *file, int line)
Definition: exception.cpp:91