General exception.
More...
#include <JException.hh>
|
static std::ostream & | getOstream () |
| Get output stream for conversion of exception. More...
|
|
General exception.
Definition at line 23 of file JException.hh.
◆ JException()
JLANG::JException::JException |
( |
const std::string & |
error | ) |
|
|
inline |
◆ ~JException()
JLANG::JException::~JException |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
◆ what()
virtual const char* JLANG::JException::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inlinevirtual |
Get error message.
- Returns
- error message
Definition at line 48 of file JException.hh.
◆ getOstream()
static std::ostream& JLANG::JException::getOstream |
( |
| ) |
|
|
inlinestatic |
Get output stream for conversion of exception.
Note that the ostream is emptied before use.
- Returns
- ostream
Definition at line 73 of file JException.hh.
75 static std::ostringstream
buffer;
◆ 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 60 of file JException.hh.
62 return out << exception.
what();
◆ buffer
const std::string JLANG::JException::buffer |
|
private |
The documentation for this class was generated from the following file: