Chemical Data Processing Library Python API - Version 1.2.0
Public Member Functions | List of all members
CDPL.Base.Exception Class Reference

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

+ Inheritance diagram for CDPL.Base.Exception:

Public Member Functions

None __init__ (str msg='')
 Constructs an Exception object with the error message set to msg. More...
 
str what ()
 Returns the message describing the cause of the exception and/or the location where the error occurred. More...
 
str __str__ ()
 Returns a string representation of the Exception instance. More...
 

Detailed Description

The root of the CDPL exception hierarchy.

Constructor & Destructor Documentation

◆ __init__()

None CDPL.Base.Exception.__init__ ( str   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.

Member Function Documentation

◆ what()

str CDPL.Base.Exception.what ( )

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.

◆ __str__()

str CDPL.Base.Exception.__str__ ( )

Returns a string representation of the Exception instance.

Returns
The generated string representation.