.. oe:namespace:: OEChem



.. meta::
   :keywords: OEMolDBException, MolDBException


.. _OEChem_OEMolDBException:

.. oe:class:: OEMolDBException

   .. oe:api::


      class OEMolDBException : public std::exception

   The exception that is raised when the :oe:meth:`OEMolDatabase
   constructors<OEChem::OEMolDatabase::Constructors>` fail.
   
   .. oe:method:: Constructors

      .. oe:language:: c++ java csharp

         .. oe:api::

            OEMolDBException(const std::string& msg)

      .. oe:language:: python

         .. oe:api:: python

            OEMolDBException(msg: str) -> OEMolDBException

      Construct the exception with the ``msg``. 

   .. oe:method:: what

      .. oe:language:: c++ java csharp

         .. oe:api::

            const char* what() const

      .. oe:language:: python

         .. oe:api:: python

            what() -> str

      Returns the message used to construct this exception.
