RDKit: SanitException.h Source File

| RDKit Open-source cheminformatics and machine learning.

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

SanitException.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2002-2006 Rational Discovery LLC
3 //
4 // @@ All Rights Reserved @@
5 // This file is part of the RDKit.
6 // The contents are covered by the terms of the BSD license
7 // which is included in the file license.txt, found at the root
8 // of the RDKit source tree.
9 //
10
11 #ifndef _RD_SANITEXCEPTION_H
12 #define _RD_SANITEXCEPTION_H
13
14 #include <RDGeneral/types.h>
15 #include <GraphMol/GraphMol.h>
16 #include <GraphMol/Atom.h>
17 #include <GraphMol/Bond.h>
18
19 #include <string>
20 #include <vector>
21 #include <exception>
22
23 namespace RDKit {
24
25 //! class for flagging sanitization errors
26 class MolSanitizeException : public std::exception {
27 public:
28 MolSanitizeException(const char *msg) : _msg(msg){};
29 MolSanitizeException(const std::string &msg) : _msg(msg){};
30 const char *message() const { return _msg.c_str(); };
31 ~MolSanitizeException() throw(){};
32
33 private:
34 std::string _msg;
35 };
36 }
37
38 #endif
types.h
RDKit::MolSanitizeException
class for flagging sanitization errors
Definition: SanitException.h:26
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
RDKit::MolSanitizeException::message
const char * message() const
Definition: SanitException.h:30
Atom.h
Defines the Atom class and associated typedefs.
RDKit::MolSanitizeException::MolSanitizeException
MolSanitizeException(const char *msg)
Definition: SanitException.h:28