Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::Kernel::Exception::NullPointerException Class Reference

Exception thrown when an attempt is made to dereference a null pointer. More...

#include <Exception.h>

Inheritance diagram for Mantid::Kernel::Exception::NullPointerException:

Public Member Functions

 NullPointerException (const std::string &place, const std::string &objectName)
 Constructor. More...
 
const char * what () const noexcept override
 Overloaded reporting method. More...
 

Private Attributes

const std::string outMessage
 The message returned by what() More...
 

Detailed Description

Exception thrown when an attempt is made to dereference a null pointer.

Author
Russell Taylor, Tessella Support Services plc
Date
01/07/2008

Definition at line 305 of file Exception.h.

Constructor & Destructor Documentation

◆ NullPointerException()

Mantid::Kernel::Exception::NullPointerException::NullPointerException ( const std::string &  place,
const std::string &  objectName 
)

Constructor.

Parameters
place:: The class & function where the exception occurred
objectName:: The name of the pointer

Definition at line 281 of file Exception.cpp.

Member Function Documentation

◆ what()

const char * Mantid::Kernel::Exception::NullPointerException::what ( ) const
overridenoexcept

Overloaded reporting method.

Definition at line 285 of file Exception.cpp.

References outMessage.

Member Data Documentation

◆ outMessage

const std::string Mantid::Kernel::Exception::NullPointerException::outMessage
private

The message returned by what()

Definition at line 308 of file Exception.h.

Referenced by what().


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