Exception for parsing value.  
 More...
#include <JException.hh>
 | 
|   | JParseError (const std::string &error) | 
|   | Constructor.  
  | 
|   | 
| virtual const char *  | what () const override  throw () | 
|   | Get error message.  
  | 
|   | 
 | 
| static std::string  | getDateAndTime () | 
|   | Get date and time [UTC].  
  | 
|   | 
| static std::ostream &  | getOstream () | 
|   | Get output stream for conversion of exception.  
  | 
|   | 
Exception for parsing value. 
Definition at line 196 of file JException.hh.
 
◆ JParseError()
  
  
      
        
          | JLANG::JParseError::JParseError  | 
          ( | 
          const std::string & |           error | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 205 of file JException.hh.
  205                                        :
  207    {}
JException(const std::string &error)
Constructor.
 
 
 
 
◆ getDateAndTime()
  
  
      
        
          | static std::string JLANG::JException::getDateAndTime  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Get date and time [UTC]. 
- Returns
 - date and time [UTC] 
 
Definition at line 31 of file JException.hh.
   32    {
   34 
   35      time_t 
result = time(NULL);
 
   36    
   37      return asctime(gmtime(&result));
   38    }
 
 
 
◆ what()
  
  
      
        
          | virtual const char * JLANG::JException::what  | 
          ( | 
           | ) | 
           const | 
         
        
          | throw  | ( |  ) |  |  |  | 
         
       
   | 
  
inlineoverridevirtualinherited   | 
  
 
Get error message. 
- Returns
 - error message 
 
Definition at line 64 of file JException.hh.
 
 
◆ getOstream()
  
  
      
        
          | static std::ostream & JLANG::JException::getOstream  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Get output stream for conversion of exception. 
Note that the ostream is emptied before use.
- Returns
 - ostream 
 
Definition at line 89 of file JException.hh.
   90    {
   91      static std::ostringstream 
buffer;
 
   92 
   94 
   96    }
 
 
 
◆ buffer
  
  
      
        
          | const std::string JLANG::JException::buffer | 
         
       
   | 
  
privateinherited   | 
  
 
 
The documentation for this class was generated from the following file: