errors.hpp
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
#ifndef CRUCIBLE_PROCESS_ERRORS_HPP #define CRUCIBLE_PROCESS_ERRORS_HPP #include "crucible/core.hpp" #include <string> namespace crucible::process::errors { struct EmptyBacktrace final { [[nodiscard]] auto describe() const -> std::string; [[nodiscard]] auto format() const -> std::string; }; struct MissingDebugInformation final { [[nodiscard]] auto describe() const -> std::string; [[nodiscard]] auto format() const -> std::string; }; using Error = core::result::Error<EmptyBacktrace, MissingDebugInformation>; } #endif // CRUCIBLE_PROCESS_ERRORS_HPP