Exception handler for functional object.  
 More...
#include <JFunctional.hh>
 | 
| virtual const char *  | what () const override  throw () | 
|   | Get error message.  More...
  | 
|   | 
template<class JArgument_t, class JResult_t>
struct JTOOLS::JFunctional< JArgument_t, JResult_t >::JExceptionHandler
Exception handler for functional object. 
Definition at line 131 of file JFunctional.hh.
 
◆ JExceptionHandler()
template<class JArgument_t , class JResult_t > 
 
Default constructor. 
Definition at line 137 of file JFunctional.hh.
JException(const std::string &error)
Constructor.
 
 
 
 
◆ ~JExceptionHandler()
template<class JArgument_t , class JResult_t > 
  
  
      
        
          | virtual JTOOLS::JFunctional< JArgument_t, JResult_t >::JExceptionHandler::~JExceptionHandler  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ action() [1/2]
template<class JArgument_t , class JResult_t > 
 
Implementation of exception handler. 
This implementation throws the exception.
- Returns
 - value 
 
Definition at line 155 of file JFunctional.hh.
 
 
◆ action() [2/2]
template<class JArgument_t , class JResult_t > 
 
 
◆ 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.
   35       time_t 
result = time(NULL);
 
   37       return asctime(gmtime(&
result));
 
 
 
 
◆ 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.
   91       static std::ostringstream 
buffer;
 
 
 
 
◆ buffer
  
  
      
        
          | const std::string JLANG::JException::buffer | 
         
       
   | 
  
privateinherited   | 
  
 
 
The documentation for this struct was generated from the following file: