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