Exception handling class for RtAudio & RtMidi. More...
#include <RtError.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 RtError types. More... | |
Public Member Functions | |
RtError (const std::string &message, Type type=RtError::UNSPECIFIED) throw () | |
The constructor. | |
virtual | ~RtError (void) throw () |
The destructor. | |
virtual void | printMessage (void) const throw () |
Prints thrown error message to stderr. | |
virtual const Type & | getType (void) const throw () |
Returns the thrown error message type. | |
virtual const std::string & | getMessage (void) const throw () |
Returns the thrown error message string. | |
virtual const char * | what (void) const throw () |
Returns the thrown error message as a c-style string. |
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.
©2001-2012 Gary P. Scavone, McGill University. All Rights Reserved. Maintained by Gary P. Scavone. |