BadgerDB
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Friends
Pages
afs
cs.wisc.edu
u
h
a
haiyun
private
cs564-spr17
projects
p2
BufMgr
src
exceptions
invalid_page_exception.cpp
1
8
#include "invalid_page_exception.h"
9
10
#include <sstream>
11
#include <string>
12
13
namespace
badgerdb {
14
15
InvalidPageException::InvalidPageException
(
16
const
PageId
requested_number,
const
std::string& file)
17
:
BadgerDbException
(
""
),
18
page_number_(requested_number),
19
filename_(file) {
20
std::stringstream ss;
21
ss <<
"Request made for an invalid page."
22
<<
" Requested page "
<<
page_number_
23
<<
" from file '"
<<
filename_
<<
"'"
;
24
message_
.assign(ss.str());
25
}
26
27
}
badgerdb::BadgerDbException::message_
std::string message_
Definition:
badgerdb_exception.h:64
badgerdb::BadgerDbException
Base class for all BadgerDB-specific exceptions.
Definition:
badgerdb_exception.h:18
badgerdb::PageId
std::uint32_t PageId
Identifier for a page in a file.
Definition:
types.h:15
badgerdb::InvalidPageException::filename_
const std::string filename_
Definition:
invalid_page_exception.h:61
badgerdb::InvalidPageException::page_number_
const PageId page_number_
Definition:
invalid_page_exception.h:56
badgerdb::InvalidPageException::InvalidPageException
InvalidPageException(const PageId requested_number, const std::string &file)
Definition:
invalid_page_exception.cpp:15
Generated on Fri Feb 10 2017 12:39:55 for BadgerDB by
1.8.6