[#absl-AbslInternalSetErrorCode]
= xref:absl.adoc[absl]::AbslInternalSetErrorCode
:relfileprefix: ../
:mrdocs:

Argument&hyphen;dependent lookup extension point that sets a `StatusBuilder`&apos;s error code&period;

== Synopsis

Declared in `&lt;absl&sol;status&sol;status&lowbar;builder&period;h&gt;`

[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&colon;&colon;SetErrorCode()`&period; It lets `StatusBuilder` be open&hyphen;sourced into Abseil without introducing hard dependencies on non&hyphen;canonical error spaces or protobuf&period; 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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *builder*
| The `StatusBuilder` to modify&period;
| *code*
| The error code to set&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
