wisc_db
file_open_exception.cpp
1 
8 #include "file_open_exception.h"
9 
10 #include <sstream>
11 #include <string>
12 
13 namespace wiscdb {
14 
15 FileOpenException::FileOpenException(const std::string& name)
16  : WiscDbException(""), filename_(name) {
17  std::stringstream ss;
18  ss << "File is currently open: " << filename_;
19  message_.assign(ss.str());
20 }
21 
22 }
Definition: buffer.h:14
FileOpenException(const std::string &name)
const std::string & filename_
Base class for all WiscDB-specific exceptions.