BadgerDB
 All Classes Namespaces Functions Variables Typedefs Friends Pages
invalid_record_exception.h
1 
8 #pragma once
9 
10 #include <string>
11 
12 #include "badgerdb_exception.h"
13 #include "types.h"
14 
15 namespace badgerdb {
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 }
virtual const RecordId & record_id() const
Base class for all BadgerDB-specific exceptions.
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
InvalidRecordException(const RecordId &rec_id, const PageId page_num)
Identifier for a record in a page.
Definition: types.h:30
An exception that is thrown when a record is requested from a page that has a bad record ID...