00001 // 00002 // Copyright (C) 2002-2006 Rational Discovery LLC 00003 // 00004 // @@ All Rights Reserved @@ 00005 // 00006 00007 #ifndef _RD_SANITEXCEPTION_H 00008 #define _RD_SANITEXCEPTION_H 00009 00010 #include <RDGeneral/types.h> 00011 #include <GraphMol/GraphMol.h> 00012 #include <GraphMol/Atom.h> 00013 #include <GraphMol/Bond.h> 00014 00015 #include <string> 00016 #include <vector> 00017 #include <exception> 00018 00019 namespace RDKit { 00020 00021 //! class for flagging sanitization errors 00022 class MolSanitizeException : public std::exception { 00023 public : 00024 MolSanitizeException(const char *msg) : _msg(msg) {}; 00025 MolSanitizeException(const std::string msg) : _msg(msg) {}; 00026 const char *message () const { return _msg.c_str(); }; 00027 ~MolSanitizeException () throw () {}; 00028 00029 private : 00030 std::string _msg; 00031 }; 00032 } 00033 00034 #endif
1.5.3