Constructors
Synopses
Declared in <absl/status/status_builder.h>
Creates an empty builder that produces an OK status.
explicit
StatusBuilder();
Creates a copy of sb.
StatusBuilder(StatusBuilder const& sb);
Move constructor.
constexpr
StatusBuilder(StatusBuilder&& other) = default;
Creates a StatusBuilder from a status code.
explicit
StatusBuilder(
absl::StatusCode code,
absl::SourceLocation location = absl::SourceLocation::current());
Creates a StatusBuilder based on an original status.
explicit
StatusBuilder(
absl::Status const& original_status,
absl::SourceLocation location = absl::SourceLocation::current());
Creates a StatusBuilder based on an original status.
explicit
StatusBuilder(
absl::Status&& original_status,
absl::SourceLocation location = absl::SourceLocation::current());
Parameters
Name |
Description |
sb |
The builder to copy. |
other |
The source object. |
code |
The status code the result will be based on. |
location |
The source location associated with the builder. |
original_status |
The status the result will be based on. |
Created with MrDocs