grpcErrors

package
v0.0.0-...-2fd68d0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCtxMetaData = errors.New("No ctx metadata")
	ErrBadRequest    = errors.New("Bad request")
	ErrMissingFields = errors.New("Missing fields")
)

Functions

func CheckErrMessage

func CheckErrMessage(err error, msg string) bool

func ErrMissingField

func ErrMissingField(fieldName string) error

func ErrResponse

func ErrResponse(err error) error

ErrResponse get gRPC error response

func GetErrStatusCode

func GetErrStatusCode(err error) codes.Code

GetErrStatusCode get error status code from error

Types

This section is empty.

Jump to

Keyboard shortcuts

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