JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

error handling: exceptions of the type of this class will be thrown if an error occurs More...

#include <jkqtpmathparser.h>

Inheritance diagram for JKQTPMathParser::jkmpException:
[legend]
Collaboration diagram for JKQTPMathParser::jkmpException:
[legend]

Public Member Functions

 jkmpException ()
 class constructors
 
 jkmpException (const std::string &msg)
 constructor with supplied error message
 
virtual ~jkmpException () override
 class destructors
 
std::string getMessage () const
 returns the assigned errormessage
 
virtual const char * what () const noexcept override
 returns the error description as C string
 

Private Attributes

std::string errormessage
 the error message
 

Detailed Description

error handling: exceptions of the type of this class will be thrown if an error occurs

Attention
If you do not want to use the exception handling which throws jkmpException exceptions, but want to write your own error handling, you should write your own error handler and assign it (function pointer) to the global variable jkmathparser_exception_function. If this is not nullptr this function will be called instead of throwing an exception.

Constructor & Destructor Documentation

◆ jkmpException() [1/2]

JKQTPMathParser::jkmpException::jkmpException ( )

class constructors

◆ jkmpException() [2/2]

JKQTPMathParser::jkmpException::jkmpException ( const std::string &  msg)

constructor with supplied error message

◆ ~jkmpException()

virtual JKQTPMathParser::jkmpException::~jkmpException ( )
overridevirtual

class destructors

Member Function Documentation

◆ getMessage()

std::string JKQTPMathParser::jkmpException::getMessage ( ) const

returns the assigned errormessage

◆ what()

virtual const char * JKQTPMathParser::jkmpException::what ( ) const
overridevirtualnoexcept

returns the error description as C string

Member Data Documentation

◆ errormessage

std::string JKQTPMathParser::jkmpException::errormessage
private

the error message


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