BadgerDB
 All Classes Namespaces Functions Variables Typedefs Friends Pages
file_exists_exception.h
1 
8 #pragma once
9 
10 #include <string>
11 
12 #include "badgerdb_exception.h"
13 
14 namespace badgerdb {
15 
21  public:
27  explicit FileExistsException(const std::string& name);
28 
32  virtual const std::string& filename() const { return filename_; }
33 
34  protected:
38  const std::string& filename_;
39 };
40 
41 }
Base class for all BadgerDB-specific exceptions.
An exception that is thrown when a file creation is requested for a filename that already exists...
FileExistsException(const std::string &name)
virtual const std::string & filename() const