error handling: exceptions of the type of this class will be thrown if an error occurs
More...
#include <jkqtpmathparser.h>
|
| 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
|
|
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.
◆ jkmpException() [1/2]
JKQTPMathParser::jkmpException::jkmpException |
( |
| ) |
|
◆ jkmpException() [2/2]
JKQTPMathParser::jkmpException::jkmpException |
( |
const std::string & |
msg | ) |
|
constructor with supplied error message
◆ ~jkmpException()
virtual JKQTPMathParser::jkmpException::~jkmpException |
( |
| ) |
|
|
overridevirtual |
◆ 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
◆ errormessage
std::string JKQTPMathParser::jkmpException::errormessage |
|
private |
The documentation for this class was generated from the following file: