00001 00008 #include "slot_in_use_exception.h" 00009 00010 #include <sstream> 00011 #include <string> 00012 00013 namespace wiscdb { 00014 00015 SlotInUseException::SlotInUseException(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 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 }