|
LMMS
|
Exception handling class for RtAudio. More...
#include <RtAudio.h>
Public Types | |
| enum | Type { WARNING , DEBUG_WARNING , UNSPECIFIED , NO_DEVICES_FOUND , INVALID_DEVICE , MEMORY_ERROR , INVALID_PARAMETER , INVALID_USE , DRIVER_ERROR , SYSTEM_ERROR , THREAD_ERROR } |
| Defined RtAudioError types. More... | |
Public Member Functions | |
| RtAudioError (const std::string &message, Type type=RtAudioError::UNSPECIFIED) | |
| The constructor. | |
| virtual void | printMessage (void) const |
| Prints thrown error message to stderr. | |
| virtual const Type & | getType (void) const |
| Returns the thrown error message type. | |
| virtual const std::string | getMessage (void) const |
| Returns the thrown error message string. | |
Protected Attributes | |
| Type | type_ |
Exception handling class for RtAudio.
The RtAudioError class is quite simple but it does allow errors to be "caught" by RtAudioError::Type. See the RtAudio documentation to know which methods can throw an RtAudioError.
| enum RtAudioError::Type |
Defined RtAudioError types.
|
inline |
The constructor.
Returns the thrown error message string.
Returns the thrown error message type.
Prints thrown error message to stderr.
|
protected |