载入中...
搜索中...
未找到
Status.h
浏览该文件的文档.
70class [[nodiscard("Status must be inspected or explicitly passed onward")]] EVENGINE_API_FOUNDATION Status {
141 const Diagnostic* primaryDiagnostic() const noexcept { return hasDiagnostics() ? &diagnostics_->front() : nullptr; }
Stable, structured diagnostics shared by engine modules.
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
bool isSuccess() const noexcept
Whether the operation completed without a failure outcome.
Definition Status.h:105
const Diagnostic * primaryDiagnostic() const noexcept
First diagnostic, or null when no diagnostic was supplied.
Definition Status.h:141
const std::vector< Diagnostic > & diagnostics() const noexcept
All diagnostics in stable insertion order.
Definition Status.h:128
bool hasDiagnostics() const noexcept
True when this status has at least one diagnostic.
Definition Status.h:125
@ NotFound
@ Unsupported
@ Conflict
std::ostream & operator<<(std::ostream &stream, Severity severity)
Writes a severity for diagnostics and test output.
Definition Diagnostic.cpp:7
@ 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:46
@ Cancelled
@ Rejected
Definition Container.h:602