An exception that is thrown when a record is attempted to be inserted into a slot that is already in use. More...
#include <slot_in_use_exception.h>
Public Member Functions | |
SlotInUseException (const PageId page_num, const SlotId slot_num) | |
virtual PageId | page_number () const |
virtual SlotId | slot_number () const |
virtual const std::string & | message () const |
virtual const char * | what () const throw () |
Protected Attributes | |
const PageId | page_number_ |
const SlotId | slot_number_ |
std::string | message_ |
An exception that is thrown when a record is attempted to be inserted into a slot that is already in use.
Definition at line 21 of file slot_in_use_exception.h.
Constructs a slot in use exception file for the given page and slot.
page_num | Number of page containing slot. |
slot_num | Number of slot which is in use. |
Definition at line 15 of file slot_in_use_exception.cpp.
|
inlinevirtualinherited |
Returns a message describing the problem that caused this exception.
Definition at line 38 of file badgerdb_exception.h.
|
inlinevirtual |
Returns the page number of the page containing the slot which caused this exception.
Definition at line 35 of file slot_in_use_exception.h.
|
inlinevirtual |
Returns the slot number of the slot which caused this exception.
Definition at line 40 of file slot_in_use_exception.h.
|
inlinevirtualinherited |
Returns a description of the exception.
Definition at line 45 of file badgerdb_exception.h.
|
protectedinherited |
Message describing the problem that caused this exception.
Definition at line 64 of file badgerdb_exception.h.
|
protected |
Page number of the page containing the slot which caused this exception.
Definition at line 46 of file slot_in_use_exception.h.
|
protected |
Slot number of the slot which caused this exception.
Definition at line 51 of file slot_in_use_exception.h.