wisc_db
hash_already_present_exception.cpp
1 
8 #include "hash_already_present_exception.h"
9 
10 #include <sstream>
11 #include <string>
12 
13 namespace wiscdb {
14 
15 HashAlreadyPresentException::HashAlreadyPresentException(const std::string& nameIn, PageId pageNoIn, FrameId frameNoIn)
16  : WiscDbException(""), name(nameIn), pageNo(pageNoIn), frameNo(frameNoIn) {
17  std::stringstream ss;
18  ss << "Entry corresponding to the hash value of file:" << name << "page:" << pageNo << "is already present in the hash table.";
19  message_.assign(ss.str());
20 }
21 
22 }
Definition: buffer.h:14
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
HashAlreadyPresentException(const std::string &nameIn, PageId pageNoIn, FrameId frameNoIn)
std::uint32_t FrameId
Identifier for a frame in buffer pool.
Definition: types.h:25
Base class for all WiscDB-specific exceptions.