wisc_db
invalid_page_exception.h
1 
8 #pragma once
9 
10 #include <string>
11 
12 #include "wiscdb_exception.h"
13 #include "include/types.h"
14 
15 namespace wiscdb {
16 
25  public:
33  InvalidPageException(const PageId requested_number,
34  const std::string& file);
35 
40  virtual ~InvalidPageException() throw() {}
41 
45  virtual PageId page_number() const { return page_number_; }
46 
50  virtual const std::string& filename() const { return filename_; }
51 
52  protected:
57 
61  const std::string filename_;
62 };
63 
64 }
Definition: buffer.h:14
An exception that is thrown when an attempt is made to access an invalid page in a file...
virtual PageId page_number() const
std::uint32_t PageId
Identifier for a page in a file.
Definition: types.h:15
virtual const std::string & filename() const
Base class for all WiscDB-specific exceptions.
InvalidPageException(const PageId requested_number, const std::string &file)