Sets the status code for the status that will be returned by this StatusBuilder.

Synopsis

Declared in <absl/status/status_builder.h>

[[nodiscard]]
StatusBuilder&&
SetCode(absl::StatusCode code) &&;

Return Value

*this to allow method chaining.

Note

The return value should not be discarded.

Parameters

Name

Description

code

The canonical status code to set.

Created with MrDocs