
Home Information Classes Download Usage Mail List Requirements Links Tutorial
#include <RtError.h>
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.
Definition at line 18 of file 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. | |
|
|
Defined RtError types.
Definition at line 22 of file RtError.h. Referenced by getType().
00022 {
00023 WARNING,
00024 DEBUG_WARNING,
00025 UNSPECIFIED,
00026 NO_DEVICES_FOUND,
00027 INVALID_DEVICE,
00028 INVALID_STREAM,
00029 MEMORY_ERROR,
00030 INVALID_PARAMETER,
00031 DRIVER_ERROR,
00032 SYSTEM_ERROR,
00033 THREAD_ERROR
00034 };
|
| The Synthesis ToolKit in C++ (STK) |
| ©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |