00001 00008 #pragma once 00009 00010 #include <string> 00011 00012 #include "wiscdb_exception.h" 00013 00014 namespace wiscdb { 00015 00020 class BadIndexInfoException : public WiscDbException { 00021 public: 00027 explicit BadIndexInfoException(const std::string& reason); 00028 00032 virtual const std::string& reason() const { return reason_; } 00033 00034 protected: 00038 const std::string& reason_; 00039 }; 00040 00041 }