00001 00008 #include "invalid_slot_exception.h" 00009 00010 #include <sstream> 00011 #include <string> 00012 00013 namespace wiscdb { 00014 00015 InvalidSlotException::InvalidSlotException(const PageId page_num, 00016 const SlotId slot_num) 00017 : WiscDbException(""), 00018 page_number_(page_num), 00019 slot_number_(slot_num) { 00020 std::stringstream ss; 00021 ss << "Attempt to access a slot which is not currently in use." 00022 << " Page: " << page_number_ << " Slot: " << slot_number_; 00023 message_.assign(ss.str()); 00024 } 00025 00026 }