wisc_db
invalid_record_exception.h
1 
8 #pragma once
9 
10 #include <string>
11 
12 #include "wiscdb_exception.h"
13 #include "include/types.h"
14 
15 namespace wiscdb {
16 
22  public:
30  InvalidRecordException(const RecordId& rec_id,
31  const PageId page_num);
32 
36  virtual const RecordId& record_id() const { return record_id_; }
37 
41  virtual PageId page_number() const { return page_number_; }
42 
43  protected:
48 
53 };
54 
55 }
Definition: buffer.h:14
An exception that is thrown when a record is requested from a page that has a bad record ID...
Identifier for a record in a page.
Definition: types.h:30
InvalidRecordException(const RecordId &rec_id, const PageId page_num)
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
Base class for all WiscDB-specific exceptions.
virtual const RecordId & record_id() const