LeviLamina
Loading...
Searching...
No Matches
ErrorInfo.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/platform/CallStack.h"
5
6namespace Bedrock {
7
8template <typename E = std::error_code>
9struct ErrorInfo {
10public:
11 ErrorInfo() = default;
12
13 [[nodiscard]] constexpr E& code() { return mError; }
14 [[nodiscard]] constexpr E const& code() const { return mError; }
15
16 E mError;
17 CallStack mCallStack;
18 std::vector<ErrorInfo> mStackErrors;
19};
20
21} // namespace Bedrock
Definition CallStack.h:11
Definition ErrorInfo.h:9
Definition code.h:5