Sets a non‐canonical error code on the result status.

Synopsis

Declared in <absl/status/status_builder.h>

template<typename Enum>
StatusBuilder&
SetErrorCode(Enum code) &
requires std::is_void_v<decltype(AbslInternalSetErrorCode(*this, code))>;

Description

INTERNAL API. NOT FOR PUBLIC USE.

Return Value

*this to allow method chaining.

Parameters

Name

Description

code

The error code to set.

Created with MrDocs