Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
JLANG::JDictionaryDuplicateEntry Class Reference

Exception for duplicate entry in dictionary. More...

#include <JException.hh>

Inheritance diagram for JLANG::JDictionaryDuplicateEntry:
JLANG::JException

Public Member Functions

 JDictionaryDuplicateEntry (const std::string &error)
 Constructor. More...
 
virtual const char * what () const override throw ()
 Get error message. More...
 

Static Public Member Functions

static std::string getDateAndTime ()
 Get date and time [UTC]. More...
 
static std::ostream & getOstream ()
 Get output stream for conversion of exception. More...
 

Detailed Description

Exception for duplicate entry in dictionary.

Definition at line 610 of file JException.hh.

Constructor & Destructor Documentation

JLANG::JDictionaryDuplicateEntry::JDictionaryDuplicateEntry ( const std::string error)
inline

Constructor.

Parameters
errorerror message

Definition at line 619 of file JException.hh.

619  :
620  JException(error)
621  {}
JException(const std::string &error)
Constructor.
Definition: JException.hh:46

Member Function Documentation

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  {
33  using namespace std;
34 
35  time_t result = time(NULL);
36 
37  return asctime(gmtime(&result));
38  }
virtual const char* JLANG::JException::what ( ) const
throw (
)
inlineoverridevirtualinherited

Get error message.

Returns
error message

Definition at line 64 of file JException.hh.

65  {
66  return buffer.c_str();
67  }
const std::string buffer
Definition: JException.hh:99
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 
93  buffer.str("");
94 
95  return buffer;
96  }
const std::string buffer
Definition: JException.hh:99

The documentation for this class was generated from the following file: