WiscDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Public Member Functions | Protected Attributes
wiscdb::SlotInUseException Class Reference

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>

Inheritance diagram for wiscdb::SlotInUseException:
wiscdb::WiscDbException

List of all members.

Public Member Functions

 SlotInUseException (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_

Detailed Description

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.


Constructor & Destructor Documentation

wiscdb::SlotInUseException::SlotInUseException ( const PageId  page_num,
const SlotId  slot_num 
)

Constructs a slot in use exception file for the given page and slot.

Parameters:
page_numNumber of page containing slot.
slot_numNumber of slot which is in use.

Definition at line 15 of file slot_in_use_exception.cpp.


Member Function Documentation

virtual PageId wiscdb::SlotInUseException::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 slot_in_use_exception.h.

virtual SlotId wiscdb::SlotInUseException::slot_number ( ) const [inline, virtual]

Returns the slot number of the slot which caused this exception.

Definition at line 40 of file slot_in_use_exception.h.


Member Data Documentation

Page number of the page containing the slot which caused this exception.

Definition at line 46 of file slot_in_use_exception.h.

Slot number of the slot which caused this exception.

Definition at line 51 of file slot_in_use_exception.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends