Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

SoundException Class Reference

Wrapper to convert applicable SDL errors into C++ std::exceptions. More...

#include <sdlwavfile.h>

Inheritance diagram for SoundException:

Inheritance graph
[legend]
Collaboration diagram for SoundException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SoundException (const char *description="Sound Exception", const char *file="< unknown >", const char *error="")
const char * what ()
virtual ~SoundException () throw ()
virtual const char * what () const throw ()
 Returns a C-style character string describing the general cause of the current error.


Private Attributes

std::string desc
 A detailed description of this exception.


Detailed Description

Wrapper to convert applicable SDL errors into C++ std::exceptions.

Definition at line 17 of file sdlwavfile.h.


Constructor & Destructor Documentation

SoundException::SoundException const char *  description = "Sound Exception",
const char *  file = "< unknown >",
const char *  error = ""
 

Definition at line 29 of file sdlwavfile.cc.

References desc, and std::exception::what().

Here is the call graph for this function:

virtual SoundException::~SoundException  )  throw () [inline, virtual]
 

Definition at line 24 of file sdlwavfile.h.


Member Function Documentation

virtual const char* std::exception::what  )  const throw () [virtual, inherited]
 

Returns a C-style character string describing the general cause of the current error.

Referenced by SoundException().

const char* SoundException::what  )  [inline]
 

Definition at line 23 of file sdlwavfile.h.

References desc.


Member Data Documentation

std::string SoundException::desc [private]
 

A detailed description of this exception.

Definition at line 18 of file sdlwavfile.h.

Referenced by SoundException(), and what().


The documentation for this class was generated from the following files:
Generated on Fri Oct 3 18:41:21 2003 for taptedDevTools by doxygen 1.3.4