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

The root of the CDPL exception hierarchy. More...

#include <Exceptions.hpp>

+ Inheritance diagram for CDPL::Base::Exception:

Public Member Functions

 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

The root of the CDPL exception hierarchy.

Constructor & Destructor Documentation

◆ Exception()

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

Constructs an Exception 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.

◆ ~Exception()

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

Virtual destructor.

Member Function Documentation

◆ what()

const char* CDPL::Base::Exception::what ( ) const
throw (
)

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

Returns
The message describing the cause of the exception and/or the location where the error occurred.

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