wisc_db
Main Page
Namespaces
Classes
Files
File List
home
newhall
public
cs44
wiscdb
src
exceptions
invalid_page_exception.cpp
1
8
#include "invalid_page_exception.h"
9
10
#include <sstream>
11
#include <string>
12
13
namespace
wiscdb
{
14
15
InvalidPageException::InvalidPageException
(
16
const
PageId
requested_number,
const
std::string& file)
17
:
WiscDbException
(
""
),
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
}
wiscdb::InvalidPageException::page_number_
const PageId page_number_
Definition:
invalid_page_exception.h:56
wiscdb
Definition:
buffer.h:14
wiscdb::InvalidPageException::filename_
const std::string filename_
Definition:
invalid_page_exception.h:61
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::InvalidPageException::InvalidPageException
InvalidPageException(const PageId requested_number, const std::string &file)
Definition:
invalid_page_exception.cpp:15
wiscdb::WiscDbException::message_
std::string message_
Definition:
wiscdb_exception.h:64
Generated by
1.8.11