BadgerDB
 All Classes Namespaces Functions Variables Typedefs Friends Pages
slot_in_use_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  SlotInUseException(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 }
Base class for all BadgerDB-specific exceptions.
virtual SlotId slot_number() const
virtual PageId page_number() const
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
SlotInUseException(const PageId page_num, const SlotId slot_num)
An exception that is thrown when a record is attempted to be inserted into a slot that is already in ...
std::uint16_t SlotId
Identifier for a slot in a page.
Definition: types.h:20