errors

package
v0.0.0-...-e8513ac Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(code int, msg string) error

Types

type BusinessError

type BusinessError struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func FormatGRPCError

func FormatGRPCError(err error) (e *BusinessError)

func NewBusinessError

func NewBusinessError(code int, msg string) *BusinessError

func (*BusinessError) Error

func (e *BusinessError) Error() string

Jump to

Keyboard shortcuts

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