#include <RtError.h>
Public Types | |
enum | Type |
Defined RtError types. | |
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 stdout. | |
virtual const Type & | getType (void) |
Returns the "thrown" error message type. | |
virtual const std::string & | getMessage (void) |
Returns the "thrown" error message 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.
![]() |
©2003-2004 Gary P. Scavone, McGill University. All Rights Reserved. Maintained by Gary P. Scavone, gary at music.mcgill.ca |