Main Page   Namespace List   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ac3::CWAVReaderException Class Reference

Contains information about exceptions thrown by CWAVReader. More...

#include <wav_reader.h>

List of all members.

Public Methods

 CWAVReaderException ()
 Constructs an exception without information on the reason.

 CWAVReaderException (int nReason)
 Constructs an exception with the specified reason.

 CWAVReaderException (int nReason, const std::string &sHint)
 Constructs an exception with the specified reason and a hint.

int GetReason () const
 Returns the reason of the exception.

std::string GetHint () const
 Returns a hint for the exception (if present).

std::string GetString () const
 Returns a describing string of the exception with hint if present.


Detailed Description

Contains information about exceptions thrown by CWAVReader.

CWAVReaderException is thrown by the class CWAVReader if an error occurs in a function of CWAVReader. Catch this exception to retrieve information on the reason of the exception.

Definition at line 38 of file wav_reader.h.


Member Function Documentation

std::string ac3::CWAVReaderException::GetString   const
 

Returns a describing string of the exception with hint if present.

Returns:
Describing string of the reason of the exception including a hint if present.

Definition at line 41 of file wav_reader.cpp.


Member Data Documentation

std::string ac3::CWAVReaderException::m_sError [static, private]
 

Initial value:

{
  "No error",
  "File could not be opened",
  "No file is opened",
  "Read error (file corrupt?)",
  "Invalid format (file corrupt?)",
  "Format not supported",
  "Chunk not found",
  "Sample does not exist",
  "Channel does not exist"
}

Definition at line 21 of file wav_reader.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Sep 25 14:06:55 2004 for ac3 by doxygen1.2.18