BadFileException.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2003-2006 Greg Landrum and Rational Discovery LLC
00003 //
00004 //  @@ All Rights Reserved @@
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   //! used by various file parsing classes to indicate a bad file
00016   class BadFileException : public std::exception {
00017   public :
00018     //! construct with an error message
00019     explicit BadFileException(const char *msg) : _msg(msg) {};
00020     //! construct with an error message
00021     explicit BadFileException(const std::string msg) : _msg(msg) {};
00022     //! get the error message
00023     const char *message () const { return _msg.c_str(); };
00024     ~BadFileException () throw () {};
00025     
00026     private :
00027       std::string _msg;
00028   };
00029 }
00030 
00031 #endif

Generated on Sat May 24 08:36:32 2008 for RDCode by  doxygen 1.5.3