00001 /* -*- mode: c++ -*- 00002 * 00003 * HippoPlot DataRepException 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: DataRepException.h,v 1.8 2004/05/26 17:59:27 pfkeb Exp $ 00009 * 00010 */ 00011 00012 #ifndef _DataRepException_H_ 00013 #define _DataRepException_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 00035 class MDL_HIPPOPLOT_API DataRepException : public std::exception 00036 { 00037 private: 00038 00040 std::string m_type; 00041 00042 public: 00043 00045 DataRepException ( const std::string & type ); 00046 00052 DataRepException ( const DataRepException & ); 00053 00056 virtual ~DataRepException () throw (); 00057 00060 virtual const char * what () const throw (); 00061 00062 }; 00063 00064 #endif // _DataRepException_H_