![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Stores information about a File I/O error. More...
#include <FileError.hpp>
Public Member Functions | |
FileError () noexcept | |
Constructor. | |
FileError (const std::string &mode, const std::string &reason, const std::filesystem::path &path) noexcept | |
Argument constructor. | |
~FileError () noexcept | |
Destructor. | |
void | log () const noexcept |
Prints the file error in a nice format to the console. | |
Public Attributes | |
std::string | m_mode |
File I/O mode. | |
std::string | m_reason |
Reason for file i/o failure. | |
std::filesystem::path | m_path |
Path error occured on. | |
Stores information about a File I/O error.
Definition at line 19 of file FileError.hpp.
|
noexcept |
Constructor.
Definition at line 14 of file FileError.cpp.
|
noexcept |
Argument constructor.
mode | File I/O i.e. read/write. |
reason | Error failure. |
path | Path where I/O failed. |
Definition at line 18 of file FileError.cpp.
|
noexcept |
Destructor.
Definition at line 25 of file FileError.cpp.
|
noexcept |
Prints the file error in a nice format to the console.
Definition at line 29 of file FileError.cpp.
std::string galaxy::FileError::m_mode |
File I/O mode.
Definition at line 50 of file FileError.hpp.
std::string galaxy::FileError::m_reason |
Reason for file i/o failure.
Definition at line 55 of file FileError.hpp.
std::filesystem::path galaxy::FileError::m_path |
Path error occured on.
Definition at line 60 of file FileError.hpp.