22#include <StormByte/exception.hxx>
23#include <StormByte/system/visibility.h>
35 class STORMBYTE_SYSTEM_PUBLIC
Exception:
public StormByte::Exception {
91 case Operation::Read:
return "read";
92 case Operation::Write:
return "write";
93 default:
return "unknown";
Base exception for the System module.
Definition exception.hxx:35
Exception(const std::string &message)
Construct from a message.
Exception(Exception &&) noexcept=default
Move constructor.
Exception(const Exception &)=default
Copy constructor.
A program could not be executed / was not found.
Definition exception.hxx:134
ExecutableNotFound(const std::filesystem::path &exec)
Construct from an executable path or name.
ExecutableNotFound(const ExecutableNotFound &)=default
Copy constructor.
ExecutableNotFound(ExecutableNotFound &&) noexcept=default
Move constructor.
A file could not be opened for read or write.
Definition exception.hxx:73
FileIOError(const std::filesystem::path &file, const Operation &operation)
Construct from a path and an operation.
Operation
Failed file operation.
Definition exception.hxx:79
FileIOError(const FileIOError &)=default
Copy constructor.
static constexpr const char * operation_to_string(const Operation &op) noexcept
Operation as text.
Definition exception.hxx:89
FileIOError(FileIOError &&) noexcept=default
Move constructor.
System module of the StormByte suite.
Definition exception.hxx:30