#include <wav_reader.h>
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. | |
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.
|
|
Returns a describing string of the exception with hint if present.
Definition at line 41 of file wav_reader.cpp. |
|
|
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. |
1.2.18