Exception handling class for RtAudio & RtMidi. Mehr ...
#include <RtError.h>

Öffentliche Typen | |
| enum | Type { WARNING, DEBUG_WARNING, UNSPECIFIED, NO_DEVICES_FOUND, INVALID_DEVICE, INVALID_STREAM, MEMORY_ERROR, INVALID_PARAMETER, DRIVER_ERROR, SYSTEM_ERROR, THREAD_ERROR } |
| Defined RtError types. Mehr ... | |
Öffentliche Methoden | |
| RtError (const std::string &message, Type type=RtError::UNSPECIFIED) | |
| The constructor. | |
| virtual | ~RtError (void) |
| The destructor. | |
| virtual void | printMessage (void) |
| Prints "thrown" error message to stdout. | |
| virtual const Type & | getType (void) |
| Returns the "thrown" error message type. | |
| virtual const std::string & | getMessage (void) |
| Returns the "thrown" error message string. | |
Geschützte Attribute | |
| std::string | message_ |
| Type | type_ |
Exception handling class for RtAudio & RtMidi.
The RtError class is quite simple but it does allow errors to be "caught" by RtError::Type. See the RtAudio and RtMidi documentation to know which methods can "throw" an RtError.
| enum RtError::Type |
Defined RtError types.
| RtError::RtError | ( | const std::string & | message, |
| Type | type = RtError::UNSPECIFIED |
||
| ) | [inline] |
| virtual RtError::~RtError | ( | void | ) | [inline, virtual] |
| virtual const std::string& RtError::getMessage | ( | void | ) | [inline, virtual] |
| virtual const Type& RtError::getType | ( | void | ) | [inline, virtual] |
| virtual void RtError::printMessage | ( | void | ) | [inline, virtual] |
Prints "thrown" error message to stdout.
Definiert in Zeile 52 der Datei RtError.h.
Benutzt message_.
Wird benutzt von MidiInit(), MutOutputDeviceShape::ShowDeviceDialog() und MutInputDeviceShape::ShowDeviceDialog().
{
#ifndef WX
std::cout << '\n' << message_.c_str() << "\n\n"
#endif
;
}
std::string RtError::message_ [protected] |
Definiert in Zeile 38 der Datei RtError.h.
Wird benutzt von getMessage() und printMessage().
Type RtError::type_ [protected] |
1.7.4