RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
KeyErrorException Class Reference

Class to allow us to throw a KeyError from C++ and have it make it back to Python. More...

#include <Exceptions.h>

Inheritance diagram for KeyErrorException:

Public Member Functions

 KeyErrorException (std::string key)
 KeyErrorException (std::string_view key)
std::string key () const
const char * what () const noexcept override
 ~KeyErrorException () noexcept override=default

Detailed Description

Class to allow us to throw a KeyError from C++ and have it make it back to Python.

Definition at line 57 of file Exceptions.h.

Constructor & Destructor Documentation

◆ KeyErrorException() [1/2]

KeyErrorException::KeyErrorException ( std::string key)
inline

Definition at line 59 of file Exceptions.h.

References key().

◆ KeyErrorException() [2/2]

KeyErrorException::KeyErrorException ( std::string_view key)
inline

Definition at line 63 of file Exceptions.h.

References key().

◆ ~KeyErrorException()

KeyErrorException::~KeyErrorException ( )
overridedefaultnoexcept

Member Function Documentation

◆ key()

std::string KeyErrorException::key ( ) const
inline

Definition at line 67 of file Exceptions.h.

Referenced by KeyErrorException(), and KeyErrorException().

◆ what()

const char * KeyErrorException::what ( ) const
inlineoverridenoexcept

Definition at line 69 of file Exceptions.h.


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