载入中...
搜索中...
未找到
Stable, structured diagnostics shared by engine modules. 更多...
#include "common/Export.h"#include <cstdint>#include <ostream>#include <string>#include <string_view>#include <utility>#include <vector>类 | |
| class | eve::Diagnostic |
| A structured explanation of a failed, degraded, or noteworthy result. 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
类型定义 | |
| using | eve::DiagnosticDetail = std::pair< std::string, std::string > |
| A structured detail attached to a Diagnostic. | |
| using | eve::DiagnosticDetails = std::vector< DiagnosticDetail > |
| Owning collection of diagnostic details with stable insertion order. | |
枚举 | |
| enum class | eve::Severity : uint8_t { eve::Info , eve::Warning , eve::Error , eve::Fatal } |
| Stable severity of a diagnostic, independent of its display text. 更多... | |
| enum class | eve::DiagnosticCode : uint32_t { eve::None = 0 , eve::InvalidArgument = 1 , eve::PreconditionViolation = 2 , eve::NotFound = 3 , eve::AlreadyExists = 4 , eve::Conflict = 5 , eve::Unsupported = 6 , eve::Cancelled = 7 , eve::StaleHandle = 8 , eve::ParseError = 9 , eve::SerializationError = 10 , eve::InvariantViolation = 11 , eve::Failed = 12 , eve::HashMismatch = 13 , eve::UnknownVersion = 14 , eve::CallbackFailure = 15 , eve::DialogueNotWaitingForChoice = 16 , eve::DialogueNotWaitingForCommand = 17 , eve::DialogueConditionRejected = 18 , eve::DialogueRouteNotFound = 19 , eve::ProcgenGroupDataInvalid = 20 , eve::TypeMismatch = 21 } |
| Stable machine-readable diagnostic codes. 更多... | |
函数 | |
| constexpr std::string_view | eve::severityName (Severity severity) noexcept |
| Returns the stable lowercase severity spelling. | |
| std::ostream & | eve::operator<< (std::ostream &stream, Severity severity) |
| Writes a severity for diagnostics and test output. | |
| constexpr std::string_view | eve::diagnosticCodeName (DiagnosticCode code) noexcept |
| Return a stable, compact spelling useful for logs and diagnostics. | |
| std::ostream & | eve::operator<< (std::ostream &stream, DiagnosticCode code) |
| Writes the stable diagnostic-code spelling to a stream. | |
详细描述
Stable, structured diagnostics shared by engine modules.
在文件 Diagnostic.h 中定义.