resonance
1.0.1
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
6
namespace
Tools
{
7
9
enum class
ErrorCode
{
10
InvalidInput
,
11
Io
,
12
Network
,
13
Process
,
14
};
15
17
struct
Error
{
18
ErrorCode
code
;
19
std::string
message
;
20
};
21
22
}
// namespace Tools
Tools
Host tools that the build runs.
Definition
byteorder.h:7
Tools::ErrorCode
ErrorCode
Kind of failure a tool reports.
Definition
error.h:9
Tools::ErrorCode::Io
@ Io
Definition
error.h:11
Tools::ErrorCode::Process
@ Process
Definition
error.h:13
Tools::ErrorCode::InvalidInput
@ InvalidInput
Definition
error.h:10
Tools::ErrorCode::Network
@ Network
Definition
error.h:12
Tools::Error
Failure returned through std::expected.
Definition
error.h:17
Tools::Error::message
std::string message
Definition
error.h:19
Tools::Error::code
ErrorCode code
Definition
error.h:18
tools
common
error.h
Generated by
1.15.0