00001 //-------------------------------------------------- 00011 //--------------------------------------------------- 00012 00013 #ifndef DATASET_NOT_FOUND_EXCEPTION_H_ 00014 #define DATASET_NOT_FOUND_EXCEPTION_H_ 00015 00016 #include "exception.h" 00017 00018 #include <string> 00019 00020 namespace imedgine 00021 { 00022 //-------------------------------------------------- 00036 //-------------------------------------------------- 00037 00038 class DatasetNotFoundException : public Exception 00039 { 00040 public: 00041 00042 //-------------------------------------------------- 00046 00047 DatasetNotFoundException(std::string dataset_key); 00048 00049 //-------------------------------------------------- 00052 00053 DatasetNotFoundException(DatasetNotFoundException const& src); 00054 00055 //-------------------------------------------------- 00058 00059 virtual ~DatasetNotFoundException() throw(); 00060 00061 //-------------------------------------------------- 00066 00067 virtual char const* what() const throw(); 00068 00069 //-------------------------------------------------- 00074 00075 std::string const& getDatasetKey() const; 00076 00077 protected: 00078 00079 std::string dataset_key_; 00080 00081 private: 00082 00083 DatasetNotFoundException & operator = (DatasetNotFoundException const&) 00084 { return(*this); } 00085 00086 }; 00087 } 00088 00089 #endif