ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Exception Class Reference

Handles all Exceptions. More...

#include <exception.h>

Inheritance diagram for Exception:
ExcGL ExcSDL

Public Member Functions

 Exception (const char *details=0, const char *file=0, int line=0)
 
 Exception (const char *message, const char *details=0, const char *file=0, int line=0, bool eno=false)
 
 Exception (const char *section, const char *message, const char *details=0, const char *file=0, int line=0)
 
 Exception (const char *section, const char *message, GLenum glerr, const char *file=0, int line=0)
 
virtual ~Exception ()
 
void init (bool eno, const char *details, const char *file, int line)
 
int getLine () const
 
const char * getFile () const
 
const char * getMessage () const
 
const char * getDetails () const
 
virtual void printError ()
 

Protected Attributes

int mError
 
int mLine
 
String mSection
 
String mMsg
 
String mFile
 
String mDetails
 
GLenum mGLErr
 

Private Member Functions

void init (bool eno, const char *message, const char *details, const char *file, int line)
 

Detailed Description

Handles all Exceptions.

All Exceptions are collected in this class. exception.h contains the SDLGUIERROR Macro:

SDLGUIERROR(error,details)

This is a short for

sdltk::Exception ((details), __FILE__, __LINE__)
Author
Fred Klaus

Constructor & Destructor Documentation

Exception ( const char *  details = 0,
const char *  file = 0,
int  line = 0 
)

References Exception::init().

Exception ( const char *  message,
const char *  details = 0,
const char *  file = 0,
int  line = 0,
bool  eno = false 
)
Exception ( const char *  section,
const char *  message,
const char *  details = 0,
const char *  file = 0,
int  line = 0 
)
Exception ( const char *  section,
const char *  message,
GLenum  glerr,
const char *  file = 0,
int  line = 0 
)
virtual ~Exception ( )
inlinevirtual

References Exception::init().

Member Function Documentation

const char* getDetails ( ) const
inline
const char* getFile ( ) const
inline

References Exception::mFile.

int getLine ( ) const
inline

References Exception::mLine.

const char* getMessage ( ) const
inline

References Exception::mMsg.

void init ( bool  eno,
const char *  details,
const char *  file,
int  line 
)
void init ( bool  eno,
const char *  message,
const char *  details,
const char *  file,
int  line 
)
private
void printError ( )
virtual

Member Data Documentation

String mDetails
protected
int mError
protected
String mFile
protected
GLenum mGLErr
protected
int mLine
protected
String mMsg
protected
String mSection
protected

The documentation for this class was generated from the following files: