General exception.  
 More...
#include <Exception.hh>
 | 
|   | Exception (const std::string &error) | 
|   | Constructor.  
  | 
|   | 
|   | ~Exception ()  throw () | 
|   | Destructor.  
  | 
|   | 
| virtual const char *  | what () const  throw () | 
|   | Get error message.  
  | 
|   | 
 | 
| static std::ostream &  | getOstream () | 
|   | Get output stream for conversion of exception.  
  | 
|   | 
 | 
| std::ostream &  | operator<< (std::ostream &out, const Exception &exception) | 
|   | Print error message of JException.  
  | 
|   | 
General exception. 
Definition at line 13 of file Exception.hh.
 
◆ Exception()
  
  
      
        
          | Exception::Exception  | 
          ( | 
          const std::string & |           error | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 20 of file Exception.hh.
   20                                    :
   21    std::exception(),
   23  {}
 
 
 
◆ ~Exception()
  
  
      
        
          | Exception::~Exception  | 
          ( | 
           | ) | 
           | 
         
        
          | throw  | ( |  ) |  |  |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ what()
  
  
      
        
          | virtual const char * Exception::what  | 
          ( | 
           | ) | 
           const | 
         
        
          | throw  | ( |  ) |  |  |  | 
         
       
   | 
  
inlinevirtual   | 
  
 
Get error message. 
- Returns
 - error message 
 
Definition at line 38 of file Exception.hh.
 
 
◆ getOstream()
  
  
      
        
          | static std::ostream & Exception::getOstream  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get output stream for conversion of exception. 
Note that the ostream is emptied before use.
- Returns
 - ostream 
 
Definition at line 63 of file Exception.hh.
   64  {
   65    static std::ostringstream 
buffer;
 
   66 
   68 
   70  }
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const Exception & |           exception ) | 
         
       
   | 
  
friend   | 
  
 
Print error message of JException. 
- Parameters
 - 
  
    | out | output stream  | 
    | exception | exception  | 
  
   
Definition at line 50 of file Exception.hh.
   51  {
   52    return out << exception.
what();
 
   53  }
virtual const char * what() const
Get error message.
 
 
 
 
◆ buffer
  
  
      
        
          | const std::string Exception::buffer | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: