CLAM-Development
1.1
|
Base class for the exception handling classes. More...
#include <Err.hxx>
Public Member Functions | |
Err () throw () | |
Err (const char *msg) throw () | |
Err (const Err &) throw () | |
virtual | ~Err () throw () |
void | Print (void) const throw () |
virtual const char * | what () const throw () |
void | Embed (const std::exception &) throw () |
void | Embed (const char *str) throw () |
Protected Attributes | |
char * | mMsg |
Base class for the exception handling classes.
Exception handling allows code that has encountered a condition it cannot cope with to return to other code, avoiding crashes by switching to the writing of error messages, managed by tbis base class.
If the call invokes the overloaded constructor, then messages can be defined either directly within the code invoking Err or in the derived class (error regarding typically formats, memory or file openings).
If the call invokes the default constructor, then the message is set to "Unknown error"
One member function : Print One data member : mMsg
CLAM::Err::Err | ( | ) | throw () |
CLAM::Err::Err | ( | const char * | msg | ) | throw () |
CLAM::Err::Err | ( | const Err & | orig | ) | throw () |
CLAM::Err::~Err | ( | ) | throw () [virtual] |
void CLAM::Err::Embed | ( | const std::exception & | e | ) | throw () |
Definition at line 67 of file Err.cxx.
Referenced by CLAM::MIDIOut::ConcreteConfigure(), CLAM::AudioIn::ConcreteConfigure(), CLAM::MIDIIn::ConcreteConfigure(), CLAM::AudioOut::ConcreteConfigure(), CLAM::MIDIClocker::ConcreteConfigure(), and CLAM::RtAAudioDeviceList::EnumerateAvailableDevices().
void CLAM::Err::Embed | ( | const char * | str | ) | throw () |
void CLAM::Err::Print | ( | void | ) | const throw () |
virtual const char* CLAM::Err::what | ( | ) | const throw () [inline, virtual] |
Reimplemented in CLAM::XmlStorageErr.
Definition at line 61 of file Err.hxx.
References mMsg.
Referenced by CLAM::AudioIn::ConcreteConfigure(), CLAM::AudioOut::ConcreteConfigure(), CLAM::SDIFOut::ConcreteStart(), CLAM::AudioOut::ConcreteStart(), CLAM::Processing::Configure(), CLAM::FlattenedNetwork::LoadFrom(), CLAM::Processing::Start(), CLAM::Processing::Stop(), and CLAM::AudioOut::~AudioOut().
char* CLAM::Err::mMsg [protected] |
Definition at line 51 of file Err.hxx.
Referenced by Err(), CLAM::ErrDXFullDuplex::ErrDXFullDuplex(), CLAM::ErrPortAudio::ErrPortAudio(), Print(), what(), and ~Err().