BadgerDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
hash_not_found_exception.cpp
1 
8 #include "hash_not_found_exception.h"
9 
10 #include <sstream>
11 #include <string>
12 
13 namespace badgerdb {
14 
15 HashNotFoundException::HashNotFoundException(const std::string& nameIn, PageId pageNoIn)
16  : BadgerDbException(""), name(nameIn), pageNo(pageNoIn) {
17  std::stringstream ss;
18  ss << "The hash value is not present in the hash table for file: " << name << "page: " << pageNo;
19  message_.assign(ss.str());
20 }
21 
22 }
Base class for all BadgerDB-specific exceptions.
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
HashNotFoundException(const std::string &nameIn, PageId pageNoIn)