berr

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SystemErr = NewBizError(10001, "system error")
)

Functions

This section is empty.

Types

type BizError

type BizError struct {
	ErrCode int64  `json:"err_code"`
	Msg     string `json:"msg"`
	Detail  string `json:"detail"`
}

func NewBizError

func NewBizError(code int64, msg string) *BizError

func (*BizError) AppendMsg

func (b *BizError) AppendMsg(s string) *BizError

func (*BizError) CloneWithError

func (b *BizError) CloneWithError(err error) *BizError

func (*BizError) Error

func (b *BizError) Error() string

func (*BizError) SetDetail

func (b *BizError) SetDetail(s string) *BizError

Jump to

Keyboard shortcuts

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