Exception raised when encountering NULL pointer when not expected. More...
#include <nullpointerexception.h>
Public Member Functions | |
| NullPointerException (const QString &className, const QString &methodName) | |
| QString | exceptionClassName () const |
| QString | exceptionMethod () const |
| QString | message () const |
| virtual const char * | what () const throw () |
| ~NullPointerException () throw () | |
Protected Attributes | |
| QString | _class |
| QString | _method |
| QString | _message |
Exception raised when encountering NULL pointer when not expected.
Exception raised when attempting to call some wrapper function methods, while the objest wrapped inside is a NULL pointer, meaning that the operation would result in null pointer dereference (and program crash), if they would be executed.
| gui::NullPointerException::NullPointerException | ( | const QString & | className, | |
| const QString & | methodName | |||
| ) |
Default constructor of exception
| className | Name of class, in which this exception occured | |
| methodName | Name of method, in which this exception occured |
| gui::NullPointerException::~NullPointerException | ( | ) | throw () |
default destructor
| QString gui::NullPointerException::exceptionClassName | ( | ) | const |
Return class in which this exception was thrown
| QString gui::NullPointerException::exceptionMethod | ( | ) | const |
Return method in which this exception was thrown
| QString gui::NullPointerException::message | ( | ) | const |
Return human-readable exception message
| const char * gui::NullPointerException::what | ( | ) | const throw () [virtual] |
Overloaded what() from std::exception
For getting usable error message if the exception is not handled
QString gui::NullPointerException::_class [protected] |
source of exception - class
QString gui::NullPointerException::_message [protected] |
Exception message
QString gui::NullPointerException::_method [protected] |
source of exception - method