00001 /* -*- mode: c++ -*- 00002 * 00003 * HippoPlot DataSourceException class interface 00004 * 00005 * Copyright (C) 2002, 2003 The Board of Trustees of The Leland Stanford 00006 * Junior University. All Rights Reserved. 00007 * 00008 * $Id: DataSourceException.h,v 1.5 2004/05/02 17:18:35 pfkeb Exp $ 00009 * 00010 */ 00011 00012 #ifndef _DataSourceException_H_ 00013 #define _DataSourceException_H_ 00014 00015 #include "pattern/libhippo.h" 00016 00017 #include <exception> 00018 #include <string> 00019 00020 #ifdef _MSC_VER 00021 #include "msdevstudio/MSconfig.h" 00022 #endif 00023 00029 class MDL_HIPPOPLOT_API DataSourceException : public std::exception 00030 { 00031 private: 00032 00034 std::string m_what; 00035 00036 public: 00037 00042 DataSourceException ( const DataSourceException & ); 00043 00046 DataSourceException ( const std::string & type ); 00047 00051 virtual ~DataSourceException () throw (); 00052 00054 char const * what () const throw (); 00055 00056 }; 00057 00058 #endif // _DataSourceException_H_