errors.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "crucible/unix/errors.hpp" namespace crucible::unix::errors { auto IncompleteRead::format() const -> std::string { return "Incomplete read"; } auto IncompleteWrite::format() const -> std::string { return "Incomplete write"; } auto NegativeFileSize::format() const -> std::string { return "Negative file size"; } auto CreateDirectoryFailed::format() const -> std::string { return "Failed to create new directory"; } auto CreateFileFailed::format() const -> std::string { return "Failed to create new file"; } auto DeleteDirectoryFailed::format() const -> std::string { return "Failed to delete directory"; } auto DeleteFileFailed::format() const -> std::string { return "Failed to delete file"; } auto IsDirectoryFailed::format() const -> std::string { return "Failed to determine if path refers to a directory"; } auto IsFileFailed::format() const -> std::string { return "Failed to determine if path refers to a file"; } auto ReadDirectoryFailed::format() const -> std::string { return "Failed to read listing from directory"; } auto ReadFileDataFailed::format() const -> std::string { return "Failed to read data from file"; } auto ReadFileSizeFailed::format() const -> std::string { return "Failed to read size from file"; } }