载入中...
搜索中...
未找到
DiagnosticValue.h
浏览该文件的文档.
55 return value == Severity::Error || value == Severity::Fatal ? DiagnosticCode::Failed : DiagnosticCode::None;
64 static constexpr std::string_view name(DiagnosticCode value) noexcept { return diagnosticCodeName(value); }
74 static constexpr std::string_view name(StatusCode value) noexcept { return statusCodeName(value); }
Stable, structured diagnostics shared by engine modules.
Structured operation status used by the common Result foundation.
A value with a stable protocol name and machine-readable diagnostic code.
Definition DiagnosticValue.h:26
@ NotFound
@ PreconditionViolation
@ Cancelled
@ Unsupported
@ Failed
@ Conflict
constexpr std::string_view diagnosticValueName(T value) noexcept
Return the stable name supplied by a DiagnosticValue specialization.
Definition DiagnosticValue.h:34
constexpr std::string_view severityName(Severity severity) noexcept
Returns the stable lowercase severity spelling.
Definition Diagnostic.h:28
constexpr DiagnosticCode diagnosticValueCode(T value) noexcept
Return the stable machine-readable code supplied by a DiagnosticValue specialization.
Definition DiagnosticValue.h:42
@ Pending
@ NotFound
@ NoOp
@ Applied
@ Cancelled
@ Unsupported
@ Rejected
@ Failed
@ Conflict
constexpr std::string_view statusCodeName(StatusCode code) noexcept
Return the stable protocol spelling of a status code.
Definition Status.h:45
@ Fatal
@ Error
constexpr std::string_view diagnosticCodeName(DiagnosticCode code) noexcept
Return a stable, compact spelling useful for logs and diagnostics.
Definition Diagnostic.h:176
static constexpr std::string_view name(DiagnosticCode value) noexcept
Name.
Definition DiagnosticValue.h:64
static constexpr DiagnosticCode code(DiagnosticCode value) noexcept
Code.
Definition DiagnosticValue.h:66
static constexpr std::string_view name(StatusCode value) noexcept
Name.
Definition DiagnosticValue.h:74
Customization point for values that cross diagnostic boundaries.
Definition DiagnosticValue.h:19