From be2eb99b37cd017fcab00c1704f794cb1bc85ee1 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Fri, 11 Oct 2013 01:58:40 +0200 Subject: Release 4.0.7 tarball --- doc/html/RtError_8h_source.html | 65 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 doc/html/RtError_8h_source.html (limited to 'doc/html/RtError_8h_source.html') diff --git a/doc/html/RtError_8h_source.html b/doc/html/RtError_8h_source.html new file mode 100644 index 0000000..2a208f7 --- /dev/null +++ b/doc/html/RtError_8h_source.html @@ -0,0 +1,65 @@ + + +The RtAudio Home Page + + + + +
+Home   Class/Enum List   File List   Compound Members  
+
+ +

RtError.h

00001 /************************************************************************/
+00010 /************************************************************************/
+00011 
+00012 #ifndef RTERROR_H
+00013 #define RTERROR_H
+00014 
+00015 #include <exception>
+00016 #include <iostream>
+00017 #include <string>
+00018 
+00019 class RtError : public std::exception
+00020 {
+00021  public:
+00023   enum Type {
+00024     WARNING,           
+00025     DEBUG_WARNING,     
+00026     UNSPECIFIED,       
+00027     NO_DEVICES_FOUND,  
+00028     INVALID_DEVICE,    
+00029     MEMORY_ERROR,      
+00030     INVALID_PARAMETER, 
+00031     INVALID_USE,       
+00032     DRIVER_ERROR,      
+00033     SYSTEM_ERROR,      
+00034     THREAD_ERROR       
+00035   };
+00036 
+00038   RtError( const std::string& message, Type type = RtError::UNSPECIFIED ) throw() : message_(message), type_(type) {}
+00039  
+00041   virtual ~RtError( void ) throw() {}
+00042 
+00044   virtual void printMessage( void ) throw() { std::cerr << '\n' << message_ << "\n\n"; }
+00045 
+00047   virtual const Type& getType(void) throw() { return type_; }
+00048 
+00050   virtual const std::string& getMessage(void) throw() { return message_; }
+00051 
+00053   virtual const char* what( void ) const throw() { return message_.c_str(); }
+00054 
+00055  protected:
+00056   std::string message_;
+00057   Type type_;
+00058 };
+00059 
+00060 #endif
+
+
+ + + +
©2001-2010 Gary P. Scavone, McGill University. All Rights Reserved.
Maintained by Gary P. Scavone.
+ + + -- cgit v1.2.3