BadgerDB
 All Classes Namespaces Functions Variables Typedefs Friends Pages
bad_buffer_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 
21  public:
25  explicit BadBufferException(FrameId frameNoIn, bool dirtyIn, bool validIn, bool refbitIn);
26 
27  protected:
32 
36  bool dirty;
37 
41  bool valid;
42 
46  bool refbit;
47 };
48 
49 }
Base class for all BadgerDB-specific exceptions.
std::uint32_t FrameId
Identifier for a frame in buffer pool.
Definition: types.h:25
An exception that is thrown when a buffer is found whose valid is false but other variables in BufDes...
BadBufferException(FrameId frameNoIn, bool dirtyIn, bool validIn, bool refbitIn)