Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JNumericalPrecision Class Reference

Exception for numerical precision error. More...

#include <JException.hh>

Inheritance diagram for JLANG::JNumericalPrecision:
JLANG::JException

Public Member Functions

 JNumericalPrecision (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 numerical precision error.

Definition at line 252 of file JException.hh.

Constructor & Destructor Documentation

◆ JNumericalPrecision()

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

Constructor.

Parameters
errorerror message

Definition at line 261 of file JException.hh.

261 :
262 JException(error)
263 {}
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: