gui::NullPointerException Class Reference

Exception raised when encountering NULL pointer when not expected. More...

#include <nullpointerexception.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

gui::NullPointerException::NullPointerException ( const QString &  className,
const QString &  methodName 
)

Default constructor of exception

Parameters:
className Name of class, in which this exception occured
methodName Name of method, in which this exception occured
gui::NullPointerException::~NullPointerException (  )  throw ()

default destructor


Member Function Documentation

QString gui::NullPointerException::exceptionClassName (  )  const

Return class in which this exception was thrown

Returns:
class name
QString gui::NullPointerException::exceptionMethod (  )  const

Return method in which this exception was thrown

Returns:
method name
QString gui::NullPointerException::message (  )  const

Return human-readable exception message

Returns:
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


Member Data Documentation

QString gui::NullPointerException::_class [protected]

source of exception - class

Exception message

source of exception - method


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