Exception for accessing a value in a collection that is outside of its range.
More...
#include <JException.hh>
|
| JValueOutOfRange (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 accessing a value in a collection that is outside of its range.
Definition at line 178 of file JException.hh.
◆ JValueOutOfRange()
JLANG::JValueOutOfRange::JValueOutOfRange |
( |
const std::string & | error | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 187 of file JException.hh.
187 :
189 {}
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: