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

ac3::CWAVWriterException Class Reference

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

#include <wav_writer.h>

List of all members.

Public Methods

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

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

 CWAVWriterException (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 CWAVWriter.

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

Definition at line 35 of file wav_writer.h.


Member Function Documentation

std::string ac3::CWAVWriterException::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 36 of file wav_writer.cpp.


Member Data Documentation

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

Initial value:

{
  "No error",
  "File could not be created",
  "No file was openend",
  "Could not write to file",
  "Invalid format",
  "Format not supported"
}

Definition at line 19 of file wav_writer.cpp.


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