wisc_db
invalid_slot_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  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 }
Definition: buffer.h:14
std::uint16_t SlotId
Identifier for a slot in a page.
Definition: types.h:20
virtual SlotId slot_number() const
InvalidSlotException(const PageId page_num, const SlotId slot_num)
virtual PageId page_number() const
An exception that is thrown when a slot that doesn&#39;t have data is requested from a page...
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
Base class for all WiscDB-specific exceptions.