io: add expected_directory_error

This commit is contained in:
Danny Robson 2021-01-14 12:54:24 +10:00
parent 03f702df4c
commit 957c4d169f

6
io.hpp
View File

@ -213,6 +213,12 @@ namespace cruft {
std::filesystem::path const m_path;
};
class expected_directory_error : public path_error {
using path_error::path_error;
};
class stream_error : public std::exception {
public:
virtual const char* what (void) const noexcept