Removed unused exception class
This commit is contained in:
parent
cb402fd14b
commit
5802040d78
@ -1,19 +0,0 @@
|
||||
#include "FileAlreadyExistsException.h"
|
||||
|
||||
namespace bf = boost::filesystem;
|
||||
|
||||
using std::runtime_error;
|
||||
using std::string;
|
||||
|
||||
namespace blockstore {
|
||||
namespace ondisk {
|
||||
|
||||
FileAlreadyExistsException::FileAlreadyExistsException(const bf::path &filepath)
|
||||
: runtime_error(string("The file ")+filepath.c_str()+" already exists") {
|
||||
}
|
||||
|
||||
FileAlreadyExistsException::~FileAlreadyExistsException() {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
#pragma once
|
||||
#ifndef BLOCKSTORE_IMPLEMENTATIONS_ONDISK_FILEALREADYEXISTSEXCEPTION_H_
|
||||
#define BLOCKSTORE_IMPLEMENTATIONS_ONDISK_FILEALREADYEXISTSEXCEPTION_H_
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
namespace blockstore {
|
||||
namespace ondisk {
|
||||
|
||||
//TODO We probably don't want an exception for that
|
||||
class FileAlreadyExistsException: public std::runtime_error {
|
||||
public:
|
||||
explicit FileAlreadyExistsException(const boost::filesystem::path &filepath);
|
||||
virtual ~FileAlreadyExistsException();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -1,7 +1,6 @@
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include "FileAlreadyExistsException.h"
|
||||
#include "OnDiskBlock.h"
|
||||
#include "OnDiskBlockStore.h"
|
||||
#include "../../utils/FileDoesntExistException.h"
|
||||
|
Loading…
Reference in New Issue
Block a user