#include <RtError.h>
Public Types | |
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. More... | |
Public Member Functions | |
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 stderr. | |
virtual const Type & | getType (void) |
Returns the thrown error message type. | |
virtual const std::string & | getMessage (void) |
Returns the thrown error message string. | |
virtual const char * | getMessageString (void) |
Returns the thrown error message as a C string. |
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.
|
©2001-2005 Gary P. Scavone, McGill University. All Rights Reserved. Maintained by Gary P. Scavone, gary@music.mcgill.ca |