[#absl-StatusBuilder-2constructor-0e0] = xref:absl.adoc[absl]::xref:absl/StatusBuilder.adoc[StatusBuilder]::StatusBuilder :relfileprefix: ../../ :mrdocs: Creates a `StatusBuilder` from a status code. == Synopsis Declared in `<absl/status/status_builder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit StatusBuilder( xref:absl/StatusCode.adoc[absl::StatusCode] code, xref:absl/SourceLocation.adoc[absl::SourceLocation] location = absl::SourceLocation::current()); ---- == Description If logging is enabled, it will use `location` as the location from which the log message occurs. A typical user will not specify `location`, allowing it to default to the current location. == Parameters [cols="1,4"] |=== | Name| Description | *code* | The status code the result will be based on. | *location* | The source location associated with the builder. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#