wisc_db
invalid_slot_exception.cpp
1 
8 #include "invalid_slot_exception.h"
9 
10 #include <sstream>
11 #include <string>
12 
13 namespace wiscdb {
14 
16  const SlotId slot_num)
17  : WiscDbException(""),
18  page_number_(page_num),
19  slot_number_(slot_num) {
20  std::stringstream ss;
21  ss << "Attempt to access a slot which is not currently in use."
22  << " Page: " << page_number_ << " Slot: " << slot_number_;
23  message_.assign(ss.str());
24 }
25 
26 }
Definition: buffer.h:14
std::uint16_t SlotId
Identifier for a slot in a page.
Definition: types.h:20
InvalidSlotException(const PageId page_num, const SlotId slot_num)
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
Base class for all WiscDB-specific exceptions.