23 lines
520 B
C++
23 lines
520 B
C++
#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
|