SanitException.h
Go to the documentation of this file.
//
// Copyright (C) 2002-2006 Rational Discovery LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#ifndef _RD_SANITEXCEPTION_H
#define _RD_SANITEXCEPTION_H
#include <RDGeneral/types.h>
#include <GraphMol/GraphMol.h>
#include <GraphMol/Atom.h>
#include <GraphMol/Bond.h>
#include <string>
#include <vector>
#include <exception>
namespace RDKit {
//! class for flagging sanitization errors
class MolSanitizeException : public std::exception {
public:
MolSanitizeException(const char *msg) : _msg(msg){};
MolSanitizeException(const std::string &msg) : _msg(msg){};
const char *message() const { return _msg.c_str(); };
~MolSanitizeException() throw(){};
private:
std::string _msg;
};
}
#endif
types.h
RDKit::MolSanitizeException
class for flagging sanitization errors
Definition: SanitException.h:26
RDKit::MolSanitizeException::message
const char * message() const
Definition: SanitException.h:30
RDKit::MolSanitizeException::~MolSanitizeException
~MolSanitizeException()
Definition: SanitException.h:31
GraphMol.h
pulls in RWMol and ROMol
Bond.h
RDKit
Includes a bunch of functionality for handling Atom and Bond queries.
Definition: Atom.h:28
RDKit::MolSanitizeException::MolSanitizeException
MolSanitizeException(const std::string &msg)
Definition: SanitException.h:29
Atom.h
Defines the Atom class and associated typedefs.
RDKit::MolSanitizeException::MolSanitizeException
MolSanitizeException(const char *msg)
Definition: SanitException.h:28