errorcode

package
v0.0.0-...-552ec7c Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgKey = "message"
)

Variables

This section is empty.

Functions

func Convert

func Convert(err error) (int, string)

func Error

func Error(e ErrorCode) error

func GrpcStatusError

func GrpcStatusError(code int, msg string) error

Types

type ErrorCode

type ErrorCode struct {
	Code    int
	Message string
}

Jump to

Keyboard shortcuts

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