Builds an absl::Status enriched with extra context, logging, and payloads.
Synopsis
Declared in <absl/status/status_builder.h>
class [[nodiscard]] StatusBuilder;
Member Functions
Name |
Description |
|
Constructors |
|
Destroys the builder. |
Assignment operators |
|
Mutates the builder so that the result status will also be logged to the provided |
|
|
|
Mutates the builder so that a stack trace will be logged if the status is logged. |
|
Returns the payload associated with |
|
Returns the source locations previously recorded in the status. |
|
Indicates whether the result status contains any |
|
Mutates the builder so that the result status will be logged (without a stack trace) when this builder is converted to a Status. |
|
Logs the result status at severity |
|
Mutates the builder so that the result status will be logged once per period (without a stack trace) when this builder is converted to a Status. |
|
Mutates the builder so that the result status will be logged every N invocations (without a stack trace) when this builder is converted to a Status. |
|
Logs the result status at severity |
|
Logs the result status at severity |
|
Mutates the builder so that the result status will only be logged to the provided |
|
Mutates the builder so that the final additional message is appended to the original error message in the status. |
|
Sets the status code for the status that will be returned by this StatusBuilder. |
|
Sets a non‐canonical error code on the result status. |
|
Mutates the builder to disable any logging that was set using any of the logging functions below. |
|
Adds a payload for the status that will be returned by this StatusBuilder. |
|
Mutates the builder so that the final additional message is prepended to the original error message in the status. |
|
Returns a string representation of the status this builder would produce. |
|
Mutates the builder so that the result status will be VLOGged (without a stack trace) when this builder is converted to a Status. |
|
Calls |
|
Returns the (canonical) error code for the Status created by this builder. |
|
Returns true if the Status created by this builder will be ok(). |
|
Returns the source location used to create this builder. |
|
Implicit conversion to Status. |
|
Appends to the extra message that will be added to the original status. |
Friends
Name |
Description |
Test fixture granted access to |
Non-Member Functions
Name |
Description |
Argument‐dependent lookup extension point that sets a |
|
Indicates whether the status that |
Return Value
|
Note
|
The return value should not be discarded. |
Created with MrDocs