Tutorial   Class/Enum List   File List   Compound Members  

RtError Class Reference

Exception handling class for RtAudio & RtMidi. More...

#include <RtError.h>

List of all members.

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 TypegetType (void)
 Returns the "thrown" error message type.

virtual const std::string & getMessage (void)
 Returns the "thrown" error message string.


Detailed Description

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.


The documentation for this class was generated from the following file:
©2003-2004 Gary P. Scavone, McGill University. All Rights Reserved.
Maintained by Gary P. Scavone, gary at music.mcgill.ca