BadgerDB
/afs/cs.wisc.edu/p/course/cs564-jignesh/public/html/projects/BadgerDB/bufmgr/src/exceptions/slot_in_use_exception.cpp
00001 
00008 #include "slot_in_use_exception.h"
00009 
00010 #include <sstream>
00011 #include <string>
00012 
00013 namespace badgerdb {
00014 
00015 SlotInUseException::SlotInUseException(const PageId page_num,
00016                                        const SlotId slot_num)
00017     : BadgerDbException(""),
00018       page_number_(page_num),
00019       slot_number_(slot_num) {
00020   std::stringstream ss;
00021   ss << "Attempt to insert data to a slot that is currently in use."
00022      << " Page: " << page_number_ << " Slot: " << slot_number_;
00023   message_.assign(ss.str());
00024 }
00025 
00026 }
 All Classes Namespaces Functions Variables Typedefs Friends