Argument-dependent lookup extension point that sets a StatusBuilder's error code.
Declared in <absl/status/status_builder.h>
void
AbslInternalSetErrorCode(
StatusBuilder& builder,
absl::StatusCode code);
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.
| Name | Description |
|---|---|
| builder | The StatusBuilder to modify. |
| code | The error code to set. |