00001
00002
00003
00004
00005
00006 #ifndef _RD_BADFILEEXCEPTION_H
00007 #define _RD_BADFILEEXCEPTION_H
00008
00009 #include <string>
00010 #include <vector>
00011 #include <exception>
00012
00013 namespace RDKit {
00014
00015
00016 class BadFileException : public std::exception {
00017 public :
00018
00019 explicit BadFileException(const char *msg) : _msg(msg) {};
00020
00021 explicit BadFileException(const std::string msg) : _msg(msg) {};
00022
00023 const char *message () const { return _msg.c_str(); };
00024 ~BadFileException () throw () {};
00025
00026 private :
00027 std::string _msg;
00028 };
00029 }
00030
00031 #endif