An exception that is thrown when a slot that doesn't have data is requested from a page. More...
#include <invalid_slot_exception.h>
Public Member Functions | |
InvalidSlotException (const PageId page_num, const SlotId slot_num) | |
virtual PageId | page_number () const |
virtual SlotId | slot_number () const |
Protected Attributes | |
const PageId | page_number_ |
const SlotId | slot_number_ |
An exception that is thrown when a slot that doesn't have data is requested from a page.
Definition at line 21 of file invalid_slot_exception.h.
wiscdb::InvalidSlotException::InvalidSlotException | ( | const PageId | page_num, |
const SlotId | slot_num | ||
) |
Constructs an invalid slot exception for the given page and slot.
page_num | Number of page containing slot. |
slot_num | Number of slot which is invalid. |
Definition at line 15 of file invalid_slot_exception.cpp.
virtual PageId wiscdb::InvalidSlotException::page_number | ( | ) | const [inline, virtual] |
Returns the page number of the page containing the slot which caused this exception.
Definition at line 35 of file invalid_slot_exception.h.
virtual SlotId wiscdb::InvalidSlotException::slot_number | ( | ) | const [inline, virtual] |
Returns the slot number of the slot which caused this exception.
Definition at line 40 of file invalid_slot_exception.h.
const PageId wiscdb::InvalidSlotException::page_number_ [protected] |
Page number of the page containing the slot which caused this exception.
Definition at line 46 of file invalid_slot_exception.h.
const SlotId wiscdb::InvalidSlotException::slot_number_ [protected] |
Slot number of the slot which caused this exception.
Definition at line 51 of file invalid_slot_exception.h.