BadgerDB
 All Classes Namespaces Functions Variables Typedefs Friends Pages
invalid_slot_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:
29  InvalidSlotException(const PageId page_num, const SlotId slot_num);
30 
35  virtual PageId page_number() const { return page_number_; }
36 
40  virtual SlotId slot_number() const { return slot_number_; }
41 
42  protected:
47 
52 };
53 
54 }
virtual PageId page_number() const
InvalidSlotException(const PageId page_num, const SlotId slot_num)
Base class for all BadgerDB-specific exceptions.
virtual SlotId slot_number() const
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
An exception that is thrown when a slot that doesn't have data is requested from a page...
std::uint16_t SlotId
Identifier for a slot in a page.
Definition: types.h:20