wisc_db
Main Page
Namespaces
Classes
Files
File List
home
newhall
public
cs44
wiscdb
src
exceptions
page_not_pinned_exception.cpp
1
8
#include "page_not_pinned_exception.h"
9
10
#include <sstream>
11
#include <string>
12
13
namespace
wiscdb
{
14
15
PageNotPinnedException::PageNotPinnedException
(
const
std::string& nameIn,
PageId
pageNoIn,
FrameId
frameNoIn)
16
:
WiscDbException
(
""
), name(nameIn), pageNo(pageNoIn), frameNo(frameNoIn) {
17
std::stringstream ss;
18
ss <<
"This page is not already pinned. file: "
<<
name
<<
"page: "
<<
pageNo
<<
"frame: "
<<
frameNo
;
19
message_
.assign(ss.str());
20
}
21
22
}
wiscdb
Definition:
buffer.h:14
wiscdb::PageNotPinnedException::frameNo
const FrameId frameNo
Definition:
page_not_pinned_exception.h:41
wiscdb::PageNotPinnedException::name
const std::string & name
Definition:
page_not_pinned_exception.h:31
wiscdb::PageNotPinnedException::PageNotPinnedException
PageNotPinnedException(const std::string &nameIn, PageId pageNoIn, FrameId frameNoIn)
Definition:
page_not_pinned_exception.cpp:15
wiscdb::PageId
std::uint32_t PageId
Identifier for a page in a file.
Definition:
types.h:15
wiscdb::FrameId
std::uint32_t FrameId
Identifier for a frame in buffer pool.
Definition:
types.h:25
wiscdb::PageNotPinnedException::pageNo
const PageId pageNo
Definition:
page_not_pinned_exception.h:36
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
Generated by
1.8.11