LeviLamina
Loading...
Searching...
No Matches
LogErrorDetails.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/diagnostics/LogAreaID.h"
7#include "mc/platform/CallStack.h"
8#include "mc/platform/ErrorInfo.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Bedrock { class AssertLevel; }
13namespace Bedrock { class LogLevel; }
14// clang-format on
15
16namespace Bedrock {
17
19public:
20 // LogErrorDetails inner types declare
21 // clang-format off
23 // clang-format on
24
25 // LogErrorDetails inner types define
26 struct AddFrameToErrorContext {
27 public:
28 // member variables
29 // NOLINTBEGIN
34 // NOLINTEND
35
36 public:
37 // prevent constructor by default
38 AddFrameToErrorContext& operator=(AddFrameToErrorContext const&);
39 AddFrameToErrorContext(AddFrameToErrorContext const&);
40 AddFrameToErrorContext();
41
42 public:
43 // member functions
44 // NOLINTBEGIN
45 MCNAPI ::std::pair<::Bedrock::CallStack::Frame, ::std::optional<::Bedrock::CallStack::Context>>
46 operator()() const;
47 // NOLINTEND
48 };
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCNAPI static ::Bedrock::LogLevel _getLogLevel(
54 ::std::variant<::Bedrock::LogLevel, ::Bedrock::AssertLevel> logOrAssertLevel,
55 ::Bedrock::CallStack::Frame const& frame,
56 ::std::string const& contextString,
57 ::std::string const& errorMessage
58 );
59
60 MCNAPI static void _logError(
61 ::std::variant<::Bedrock::LogLevel, ::Bedrock::AssertLevel> logOrAssertLevel,
62 ::LogAreaID logArea,
64 ::std::string&& contextString,
66 );
67 // NOLINTEND
68};
69
70} // namespace Bedrock
Definition AssertLevel.h:16
Definition LogErrorDetails.h:18
static MCAPI ::Bedrock::LogLevel _getLogLevel(::std::variant<::Bedrock::LogLevel, ::Bedrock::AssertLevel > logOrAssertLevel, ::Bedrock::CallStack::Frame const &frame, ::std::string const &contextString, ::std::string const &errorMessage)
static MCAPI void _logError(::std::variant<::Bedrock::LogLevel, ::Bedrock::AssertLevel > logOrAssertLevel, ::LogAreaID logArea, ::Bedrock::ErrorInfo<::std::error_code > &&error, ::std::string &&contextString, ::Bedrock::CallStack::Frame &&frame)
Definition LogLevel.h:7
Definition CallStack.h:31
Definition ErrorInfo.h:9
MCAPI ::std::pair<::Bedrock::CallStack::Frame, ::std::optional<::Bedrock::CallStack::Context > > operator()() const
Definition Alias.h:14