1 #ifndef LIBFILEZILLA_FSRESULT_HEADER
2 #define LIBFILEZILLA_FSRESULT_HEADER
8 #include "private/visibility.hpp"
52 typedef uint32_t raw_t;
57 explicit operator bool()
const {
return error_ == 0; }
77 typedef uint32_t raw_t;
98 explicit rwresult(error e, raw_t raw)
104 explicit rwresult(
size_t value)
108 explicit operator bool()
const {
return error_ == 0; }
Small class to return filesystem errors.
Definition: fsresult.hpp:26
error
Definition: fsresult.hpp:28
@ noperm
Permission denied.
Definition: fsresult.hpp:36
@ nofile
Requested file does not exist or is not a file.
Definition: fsresult.hpp:39
@ invalid
Invalid arguments, syntax error.
Definition: fsresult.hpp:33
@ nospace
Out of disk space.
Definition: fsresult.hpp:45
@ nodir
Requested dir does not exist or is not a dir.
Definition: fsresult.hpp:42
Holds the result of read/write operations.
Definition: fsresult.hpp:74
error
Definition: fsresult.hpp:82
@ wouldblock
The operation would have blocked, but the file descriptor is marked non-blocking.
Definition: fsresult.hpp:92
@ invalid
Invalid arguments, syntax error.
Definition: fsresult.hpp:86
@ nospace
Out of disk space.
Definition: fsresult.hpp:89
@ error
Error messages aimed at the user.
Definition: logger.hpp:21
The namespace used by libfilezilla.
Definition: apply.hpp:17