errors

package
v2.679.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errors provides gRPC-specific error helpers for go-service.

This package contains small helpers for classifying and normalizing gRPC-related errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerError

func ServerError(err error) error

ServerError normalizes expected gRPC server shutdown errors.

gRPC returns grpc.ErrServerStopped when (*grpc.Server).Serve is called after Stop or GracefulStop. That order can occur during normal asynchronous lifecycle shutdown, so it is not considered a serve failure.

ServerError returns nil when err is grpc.ErrServerStopped, otherwise it returns err unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL