A library for working with phylogenetic and population genetic data.
ExistingFileError Class Reference

#include <genesis/utils/core/exception.hpp>

Inherits IOError.

Detailed Description

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_

Constructor & Destructor Documentation

◆ ExistingFileError()

ExistingFileError ( std::string const &  message,
std::string const &  filename 

Definition at line 114 of file exception.hpp.

The documentation for this class was generated from the following file: