Chemical Data Processing Library C++ API - Version 1.1.1
Public Member Functions | List of all members
CDPL::Base::NullPointerException Class Reference

Thrown when an operation requires or expects a valid pointer but a null pointer was provided. More...

#include <Exceptions.hpp>

+ Inheritance diagram for CDPL::Base::NullPointerException:

Public Member Functions

 NullPointerException (const std::string &msg="")
 Constructs a NullPointerException object with the error message set to msg. More...
 
virtual ~NullPointerException () throw ()
 Virtual destructor. More...
 
- Public Member Functions inherited from CDPL::Base::ValueError
 ValueError (const std::string &msg="")
 Constructs a ValueError object with the error message set to msg. More...
 
virtual ~ValueError () throw ()
 Virtual destructor. More...
 
- Public Member Functions inherited from CDPL::Base::Exception
 Exception (const std::string &msg="")
 Constructs an Exception object with the error message set to msg. More...
 
virtual ~Exception () throw ()
 Virtual destructor. More...
 
const char * what () const throw ()
 Returns the message describing the cause of the exception and/or the location where the error occurred. More...
 

Detailed Description

Thrown when an operation requires or expects a valid pointer but a null pointer was provided.

Constructor & Destructor Documentation

◆ NullPointerException()

CDPL::Base::NullPointerException::NullPointerException ( const std::string &  msg = "")

Constructs a NullPointerException object with the error message set to msg.

Parameters
msgA message describing the cause of the exception and/or the location where the error occurred.

◆ ~NullPointerException()

virtual CDPL::Base::NullPointerException::~NullPointerException ( )
throw (
)
virtual

Virtual destructor.


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