errors

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusProviderAuthenticationError = status.New(
		codes.InvalidArgument, "failed to authenticate with the keystore provider")
	StatusKeyNotFound = status.New(
		codes.NotFound, "key not found in the keystore provider")
)

Functions

func GetReason

func GetReason(err error) string

GetReason extracts the reason from the given gRPC error, if available.

func IsStatus

func IsStatus(err error, st *status.Status) bool

IsStatus checks if the given error matches the provided gRPC status.

func NewGrpcErrorWithReason

func NewGrpcErrorWithReason(st *status.Status, reason string) error

NewGrpcErrorWithReason creates a gRPC error with the given status and reason.

Types

This section is empty.

Jump to

Keyboard shortcuts

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