Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
virtual const char * what () const override throw ()
 Get error message.
 

Static Public Member Functions

static std::string getDateAndTime ()
 Get date and time [UTC].
 

Private Attributes

const std::string buffer
 

Detailed Description

Exception for duplicate entry in dictionary.

Definition at line 594 of file JException.hh.

Constructor & Destructor Documentation

◆ JDictionaryDuplicateEntry()

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

Constructor.

Parameters
errorerror message

Definition at line 603 of file JException.hh.

603 :
604 JException(error)
605 {}
JException(const std::string &error)
Constructor.
Definition JException.hh:47

Member Function Documentation

◆ getDateAndTime()

static std::string JLANG::JException::getDateAndTime ( )
inlinestaticinherited

Get date and time [UTC].

Returns
date and time [UTC]

Definition at line 32 of file JException.hh.

33 {
34 using namespace std;
35
36 time_t result = time(NULL);
37
38 return asctime(gmtime(&result));
39 }

◆ what()

virtual const char * JLANG::JException::what ( ) const
throw ( )
inlineoverridevirtualinherited

Get error message.

Returns
error message

Definition at line 65 of file JException.hh.

66 {
67 return buffer.c_str();
68 }
const std::string buffer
Definition JException.hh:83

Member Data Documentation

◆ buffer

const std::string JLANG::JException::buffer
privateinherited

Definition at line 83 of file JException.hh.


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