derrors

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCErrorf

func GRPCErrorf(err error, c codes.Code, format string, a ...interface{}) error

GRPCErrorf creates error containing pair errors: grpc.Status with given code and message, and underlying error.

func ToGRPCError

func ToGRPCError(err error) (error, error)

ToGRPCError separates grpc.Error and underlying error.

Types

type GRPCWrapError

type GRPCWrapError struct {
	// contains filtered or unexported fields
}

func (*GRPCWrapError) Error

func (e *GRPCWrapError) Error() string

func (*GRPCWrapError) Status

func (e *GRPCWrapError) Status() *status.Status

func (*GRPCWrapError) Unwrap

func (e *GRPCWrapError) Unwrap() error

Jump to

Keyboard shortcuts

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