RDKit
Open-source cheminformatics and machine learning.
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 #include <RDGeneral/export.h>
12 #ifndef _RD_SANITEXCEPTION_H
13 #define _RD_SANITEXCEPTION_H
14 
15 #include <RDGeneral/types.h>
16 #include <GraphMol/GraphMol.h>
17 #include <GraphMol/Atom.h>
18 #include <GraphMol/Bond.h>
19 
20 #include <string>
21 #include <vector>
22 #include <exception>
23 
24 namespace RDKit {
25 
26 //! class for flagging sanitization errors
27 class RDKIT_GRAPHMOL_EXPORT MolSanitizeException : public std::exception {
28  public:
29  MolSanitizeException(const char *msg) : _msg(msg){};
30  MolSanitizeException(const std::string &msg) : _msg(msg){};
31  const char *message() const { return _msg.c_str(); };
32  ~MolSanitizeException() throw(){};
33 
34  private:
35  std::string _msg;
36 };
37 }
38 
39 #endif
class for flagging sanitization errors
const char * message() const
#define RDKIT_GRAPHMOL_EXPORT
Definition: export.h:294
pulls in RWMol and ROMol
Std stuff.
Definition: Atom.h:30
MolSanitizeException(const std::string &msg)
Defines the Atom class and associated typedefs.
MolSanitizeException(const char *msg)