BadgerDB
/afs/cs.wisc.edu/p/course/cs564-jignesh/public/html/projects/BadgerDB/bufmgr/src/exceptions/hash_already_present_exception.cpp
00001 
00008 #include "hash_already_present_exception.h"
00009 
00010 #include <sstream>
00011 #include <string>
00012 
00013 namespace badgerdb {
00014 
00015 HashAlreadyPresentException::HashAlreadyPresentException(const std::string& nameIn, PageId pageNoIn, FrameId frameNoIn)
00016     : BadgerDbException(""), name(nameIn), pageNo(pageNoIn), frameNo(frameNoIn) {
00017   std::stringstream ss;
00018   ss << "Entry corresponding to the hash value of file:" << name << "page:" << pageNo << "is already present in the hash table.";
00019   message_.assign(ss.str());
00020 }
00021 
00022 }
 All Classes Namespaces Functions Variables Typedefs Friends