00001 /* 00002 * WrongDBException.cpp 00003 * 00004 * Created on: Nov 6, 2011 00005 * Author: martin 00006 */ 00007 00008 #include "WrongDBException.h" 00009 #include <sstream> 00010 #include <ostream> 00011 00012 namespace osmdb 00013 { 00014 00015 WrongDBException::WrongDBException(const std::string& filename) 00016 : filename(filename) 00017 { 00018 } 00019 00020 WrongDBException::~WrongDBException() throw() 00021 { 00022 } 00023 00024 const char* WrongDBException::what() const throw() 00025 { 00026 std::ostringstream ss; 00027 ss << "Database validation failed " << filename; 00028 return ss.str().c_str(); 00029 } 00030 00031 00032 00033 } /* namespace osmdb */