|
LMMS
|
Exception handling class for RtMidi. More...
#include <RtMidi.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 RtMidiError types. More... | |
Public Member Functions | |
| RtMidiError (const std::string &message, Type type=RtMidiError::UNSPECIFIED) throw () | |
| The constructor. | |
| virtual | ~RtMidiError (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. | |
Protected Attributes | |
| std::string | message_ |
| Type | type_ |
Exception handling class for RtMidi.
The RtMidiError class is quite simple but it does allow errors to be "caught" by RtMidiError::Type. See the RtMidi documentation to know which methods can throw an RtMidiError.
| enum RtMidiError::Type |
Defined RtMidiError types.
|
inline | |||||||||||||||
The constructor.
|
inlinevirtual | |||||||||||||
The destructor.
Returns the thrown error message string.
Returns the thrown error message type.
Prints thrown error message to stderr.
Returns the thrown error message as a c-style string.
|
protected |
|
protected |