wisc_db
Main Page
Namespaces
Classes
Files
File List
home
newhall
public
cs44
wiscdb
src
exceptions
hash_not_found_exception.cpp
1
8
#include "hash_not_found_exception.h"
9
10
#include <sstream>
11
#include <string>
12
13
namespace
wiscdb
{
14
15
HashNotFoundException::HashNotFoundException
(
const
std::string& nameIn,
PageId
pageNoIn)
16
:
WiscDbException
(
""
), 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
}
wiscdb::HashNotFoundException::pageNo
const PageId pageNo
Definition:
hash_not_found_exception.h:36
wiscdb
Definition:
buffer.h:14
wiscdb::HashNotFoundException::name
const std::string & name
Definition:
hash_not_found_exception.h:31
wiscdb::PageId
std::uint32_t PageId
Identifier for a page in a file.
Definition:
types.h:15
wiscdb::WiscDbException
Base class for all WiscDB-specific exceptions.
Definition:
wiscdb_exception.h:18
wiscdb::WiscDbException::message_
std::string message_
Definition:
wiscdb_exception.h:64
wiscdb::HashNotFoundException::HashNotFoundException
HashNotFoundException(const std::string &nameIn, PageId pageNoIn)
Definition:
hash_not_found_exception.cpp:15
Generated by
1.8.11