WiscDB
 All Classes Functions Variables Friends
invalid_record_exception.cpp
00001 
00008 #include "invalid_record_exception.h"
00009 
00010 #include <sstream>
00011 #include <string>
00012 
00013 namespace wiscdb {
00014 
00015 InvalidRecordException::InvalidRecordException(
00016     const RecordId& rec_id, const PageId page_num)
00017     : WiscDbException(""),
00018       record_id_(rec_id),
00019       page_number_(page_num) {
00020   std::stringstream ss;
00021   ss << "Request made for an invalid record."
00022      << " Record {page=" << record_id_.page_number
00023      << ", slot=" << record_id_.slot_number
00024      << "} from page " << page_number_;
00025   message_.assign(ss.str());
00026 }
00027 
00028 }
 All Classes Functions Variables Friends