WiscDB
 All Classes Functions Variables Friends
Public Member Functions | Protected Attributes
wiscdb::InvalidRecordException Class Reference

An exception that is thrown when a record is requested from a page that has a bad record ID. More...

#include <invalid_record_exception.h>

Inheritance diagram for wiscdb::InvalidRecordException:
wiscdb::WiscDbException

List of all members.

Public Member Functions

 InvalidRecordException (const RecordId &rec_id, const PageId page_num)
virtual const RecordIdrecord_id () const
virtual PageId page_number () const

Protected Attributes

const RecordId record_id_
const PageId page_number_

Detailed Description

An exception that is thrown when a record is requested from a page that has a bad record ID.

Definition at line 21 of file invalid_record_exception.h.


Constructor & Destructor Documentation

wiscdb::InvalidRecordException::InvalidRecordException ( const RecordId rec_id,
const PageId  page_num 
)

Constructs an invalid record exception for the given requested record ID and page number.

Parameters:
rec_idRequested record ID.
page_numPage from which record is requested.

Definition at line 15 of file invalid_record_exception.cpp.


Member Function Documentation

virtual PageId wiscdb::InvalidRecordException::page_number ( ) const [inline, virtual]

Returns the page number of the page that caused this exception.

Definition at line 41 of file invalid_record_exception.h.

virtual const RecordId& wiscdb::InvalidRecordException::record_id ( ) const [inline, virtual]

Returns the requested record ID that caused this exception.

Definition at line 36 of file invalid_record_exception.h.


Member Data Documentation

Page number of page which caused this exception.

Definition at line 52 of file invalid_record_exception.h.

Record ID which caused this exception.

Definition at line 47 of file invalid_record_exception.h.


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