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>
Public Member Functions | |
InvalidRecordException (const RecordId &rec_id, const PageId page_num) | |
virtual const RecordId & | record_id () const |
virtual PageId | page_number () const |
Protected Attributes | |
const RecordId | record_id_ |
const PageId | page_number_ |
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.
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.
rec_id | Requested record ID. |
page_num | Page from which record is requested. |
Definition at line 15 of file invalid_record_exception.cpp.
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.
const PageId wiscdb::InvalidRecordException::page_number_ [protected] |
Page number of page which caused this exception.
Definition at line 52 of file invalid_record_exception.h.
const RecordId wiscdb::InvalidRecordException::record_id_ [protected] |
Record ID which caused this exception.
Definition at line 47 of file invalid_record_exception.h.