Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
Wrap masks the gRPC status of the provided error by replacing it with the provided status.
func WrapCaller ¶
WrapCaller masks the gRPC status of the provided error by replacing it with the provided status. The call site of the error is captured from the provided caller.
func WrapTransient ¶
WrapTransient masks the gRPC status of the provided error by replacing the status message. If the original error has transient (retryable) gRPC status code, the status code is forwarded. Otherwise, the status code is masked with INTERNAL.
func WrapTransientCaller ¶
WrapTransient masks the gRPC status of the provided error by replacing the status message. If the original error has transient (retryable) gRPC status code, the status code is forwarded. Otherwise, the status code is masked with INTERNAL. The call site of the error is captured from the provided caller.