From 2ea2d92e3b4e1e87ffe1df14da877334834a499f Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Fri, 11 Oct 2013 02:06:28 +0200 Subject: Release 4.0.12 tarball --- doc/html/RtError_8h_source.html | 104 +++++++++++++++++++++------------------- 1 file changed, 54 insertions(+), 50 deletions(-) (limited to 'doc/html/RtError_8h_source.html') diff --git a/doc/html/RtError_8h_source.html b/doc/html/RtError_8h_source.html index 0575322..2a73398 100644 --- a/doc/html/RtError_8h_source.html +++ b/doc/html/RtError_8h_source.html @@ -8,58 +8,62 @@
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 ) const throw() { std::cerr << '\n' << message_ << "\n\n"; }
-00045 
-00047   virtual const Type& getType(void) const throw() { return type_; }
-00048 
-00050   virtual const std::string& getMessage(void) const 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
-
+ + +
+
+
RtError.h
+
+
+
1 /************************************************************************/
+
10 /************************************************************************/
+
11 
+
12 #ifndef RTERROR_H
+
13 #define RTERROR_H
+
14 
+
15 #include <exception>
+
16 #include <iostream>
+
17 #include <string>
+
18 
+
19 class RtError : public std::exception
+
20 {
+
21  public:
+
23  enum Type {
+ + + + + + + + + + + +
35  };
+
36 
+
38  RtError( const std::string& message, Type type = RtError::UNSPECIFIED ) throw() : message_(message), type_(type) {}
+
39 
+
41  virtual ~RtError( void ) throw() {}
+
42 
+
44  virtual void printMessage( void ) const throw() { std::cerr << '\n' << message_ << "\n\n"; }
+
45 
+
47  virtual const Type& getType(void) const throw() { return type_; }
+
48 
+
50  virtual const std::string& getMessage(void) const throw() { return message_; }
+
51 
+
53  virtual const char* what( void ) const throw() { return message_.c_str(); }
+
54 
+
55  protected:
+
56  std::string message_;
+
57  Type type_;
+
58 };
+
59 
+
60 #endif
+

- - +
©2001-2012 Gary P. Scavone, McGill University. All Rights Reserved.
Maintained by Gary P. Scavone.
©2001-2013 Gary P. Scavone, McGill University. All Rights Reserved.
Maintained by Gary P. Scavone.
- -- cgit v1.2.3