[#absl-AbslInternalSetErrorCode] = xref:absl.adoc[absl]::AbslInternalSetErrorCode :relfileprefix: ../ :mrdocs: Argument‐dependent lookup extension point that sets a `StatusBuilder`'s error code. == Synopsis Declared in `<absl/status/status_builder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void AbslInternalSetErrorCode( xref:absl/StatusBuilder.adoc[StatusBuilder]& builder, xref:absl/StatusCode.adoc[absl::StatusCode] code); ---- == Description This is the extension point behind `StatusBuilder::SetErrorCode()`. It lets `StatusBuilder` be open‐sourced into Abseil without introducing hard dependencies on non‐canonical error spaces or protobuf. A simple shell is defined here, while SFINAE prevents actual usage unless this extension point is also defined, which is only the case in internal libraries. == Parameters [cols="1,4"] |=== | Name| Description | *builder* | The `StatusBuilder` to modify. | *code* | The error code to set. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#