Exception handling class for RtAudio & RtMidi.
More...
#include <RtError.h>
|
enum | Type {
WARNING,
DEBUG_WARNING,
UNSPECIFIED,
NO_DEVICES_FOUND,
INVALID_DEVICE,
MEMORY_ERROR,
INVALID_PARAMETER,
INVALID_USE,
DRIVER_ERROR,
SYSTEM_ERROR,
THREAD_ERROR
} |
| Defined RtError types. More...
|
|
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.
◆ Type
Defined RtError types.
Enumerator |
---|
WARNING | A non-critical error.
|
DEBUG_WARNING | A non-critical error which might be useful for debugging.
|
UNSPECIFIED | The default, unspecified error type.
|
NO_DEVICES_FOUND | No devices found on system.
|
INVALID_DEVICE | An invalid device ID was specified.
|
MEMORY_ERROR | An error occured during memory allocation.
|
INVALID_PARAMETER | An invalid parameter was specified to a function.
|
INVALID_USE | The function was called incorrectly.
|
DRIVER_ERROR | A system driver error occured.
|
SYSTEM_ERROR | A system error occured.
|
THREAD_ERROR | A thread error occured.
|
◆ RtError()
◆ ~RtError()
virtual RtError::~RtError |
( |
void |
| ) |
|
throw | ( | |
| ) | | |
|
inlinevirtual |
◆ getMessage()
virtual const std::string& RtError::getMessage |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
inlinevirtual |
Returns the thrown error message string.
◆ getType()
virtual const Type& RtError::getType |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
inlinevirtual |
Returns the thrown error message type.
◆ printMessage()
virtual void RtError::printMessage |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
inlinevirtual |
Prints thrown error message to stderr.
◆ what()
virtual const char* RtError::what |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
inlinevirtual |
Returns the thrown error message as a c-style string.
◆ message_
std::string RtError::message_ |
|
protected |
◆ type_
The documentation for this class was generated from the following file: