12#ifndef RD_SANITEXCEPTION_H
13#define RD_SANITEXCEPTION_H
33 : d_msg(other.d_msg) {}
34 const char *
what() const noexcept
override {
return d_msg.c_str(); }
39 virtual std::string
getType()
const {
return "MolSanitizeException"; }
59 std::string
getType()
const override {
return "AtomSanitizeException"; }
78 std::string
getType()
const override {
return "AtomValenceException"; }
94 std::string
getType()
const override {
return "AtomKekulizeException"; }
106 return d_atomIndices;
112 std::string
getType()
const override {
return "KekulizeException"; }
Defines the Atom class and associated typedefs.
AtomKekulizeException(const std::string &msg, unsigned int atomIdx)
~AtomKekulizeException() noexcept override
MolSanitizeException * copy() const override
AtomKekulizeException(const char *msg, unsigned int atomIdx)
std::string getType() const override
AtomKekulizeException(const AtomKekulizeException &other)
unsigned int getAtomIdx() const
MolSanitizeException * copy() const override
AtomSanitizeException(const AtomSanitizeException &other)
~AtomSanitizeException() noexcept override
AtomSanitizeException(const std::string &msg, unsigned int atomIdx)
AtomSanitizeException(const char *msg, unsigned int atomIdx)
std::string getType() const override
AtomValenceException(const char *msg, unsigned int atomIdx)
MolSanitizeException * copy() const override
AtomValenceException(const std::string &msg, unsigned int atomIdx)
~AtomValenceException() noexcept override
std::string getType() const override
AtomValenceException(const AtomValenceException &other)
KekulizeException(const KekulizeException &other)
const std::vector< unsigned int > & getAtomIndices() const
std::string getType() const override
std::vector< unsigned int > d_atomIndices
~KekulizeException() noexcept override
KekulizeException(const char *msg, std::vector< unsigned int > indices)
KekulizeException(const std::string &msg, std::vector< unsigned int > indices)
MolSanitizeException * copy() const override
class for flagging sanitization errors
const char * what() const noexcept override
virtual MolSanitizeException * copy() const
MolSanitizeException(std::string msg)
MolSanitizeException(const MolSanitizeException &other)
~MolSanitizeException() noexcept override
virtual std::string getType() const
MolSanitizeException(const char *msg)
#define RDKIT_GRAPHMOL_EXPORT