25 FileIOError(
const std::string& message, std::string filename);
27 std::string
whatStr()
const override;
30 std::string m_filename;
41 std::string
whatStr()
const override;
44 std::error_code m_errorCode;
69 m_filename(std::move(filename))
74 std::string filenameInfo = m_filename.empty() ?
"(unavailable)" : m_filename;
85 , m_errorCode(errorCode)
91 auto errorCodeMsg = m_errorCode.message();
92 if(errorCodeMsg.empty())
98 return std::format(
"{} ({})", baseMsg, errorCodeMsg);
Definition io_exceptions.h:21
std::string whatStr() const override
Definition io_exceptions.h:72
FileIOError(const std::string &message)
Definition io_exceptions.h:57
Definition io_exceptions.h:34
FilesystemError(std::error_code errorCode)
Definition io_exceptions.h:79
std::string whatStr() const override
Definition io_exceptions.h:88
Definition io_exceptions.h:14
IOException(const std::string &message)
Definition io_exceptions.h:49
General exception thrown on runtime error.
Definition exceptions.h:21
virtual std::string whatStr() const
Definition exception.cpp:14
The root for all renderer implementations.
Definition assertion.h:9