#include <genesis/utils/core/exception.hpp>
Inherits IOError.
Exception class that is thrown if trying to write to an existing file.
See for example file_output_stream(). This exception is not thrown if Options::get().allow_file_overwriting() is set to true.
Definition at line 109 of file exception.hpp.
Public Member Functions | |
ExistingFileError (std::string const &message, std::string const &filename) | |
Public Member Functions inherited from IOError | |
IOError (std::string const &message) | |
IOError (std::string const &message, std::string const &filename) | |
std::string const & | filename () const |
Public Member Functions inherited from Exception | |
Exception (std::string const &message) | |
char const * | what () const noexcept override |
Additional Inherited Members | |
Protected Attributes inherited from IOError | |
std::string | filename_ |
Protected Attributes inherited from Exception | |
std::string | message_ |
|
inline |
Definition at line 114 of file exception.hpp.