General exception.
More...
#include <JException.hh>
|
| | JException (const std::string &error) |
| | Constructor.
|
| |
| | ~JException () throw () |
| | Destructor.
|
| |
| virtual const char * | what () const override throw () |
| | Get error message.
|
| |
General exception.
Definition at line 25 of file JException.hh.
◆ JException()
| JLANG::JException::JException |
( |
const std::string & | error | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 47 of file JException.hh.
47 :
48 std::exception(),
50 {}
◆ ~JException()
| JLANG::JException::~JException |
( |
| ) |
|
| throw | ( | ) | | | |
|
inline |
◆ getDateAndTime()
| static std::string JLANG::JException::getDateAndTime |
( |
| ) |
|
|
inlinestatic |
Get date and time [UTC].
- Returns
- date and time [UTC]
Definition at line 32 of file JException.hh.
33 {
35
36 time_t
result = time(NULL);
37
38 return asctime(gmtime(&result));
39 }
◆ what()
| virtual const char * JLANG::JException::what |
( |
| ) |
const |
| throw | ( | ) | | | |
|
inlineoverridevirtual |
Get error message.
- Returns
- error message
Definition at line 65 of file JException.hh.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JException & | exception ) |
|
friend |
Print error message of JException.
- Parameters
-
| out | output stream |
| exception | exception |
Definition at line 77 of file JException.hh.
78 {
79 return out << exception.what();
80 }
◆ buffer
| const std::string JLANG::JException::buffer |
|
private |
The documentation for this class was generated from the following file: