Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGRPCErrorContext ¶
GetGRPCErrorContext extracts the context from a GRPCError if it exists in a joined error chain.
func IsAnyError ¶
Types ¶
type GRPCError ¶
type GRPCError struct {
Code GRPCErrorCode
BaseMessage string
Reason string
Metadata map[string]string
}
GRPCError represents a structured error for gRPC responses. The error can be matched using errors.Is and errors.As.
func (GRPCError) FromStatusError ¶
type GRPCErrorCode ¶
type GRPCErrorCode string
type JoinedError ¶
type JoinedError interface {
Unwrap() []error
}
Click to show internal directories.
Click to hide internal directories.