buserr

package
v1.10.8-lts Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusinessError

type BusinessError struct {
	Msg    string
	Detail interface{}
	Map    map[string]interface{}
	Err    error
}

func New

func New(Key string) BusinessError

func WithDetail

func WithDetail(Key string, detail interface{}, err error) BusinessError

func WithErr

func WithErr(Key string, err error) BusinessError

func WithMap

func WithMap(Key string, maps map[string]interface{}, err error) BusinessError

func WithName added in v1.8.0

func WithName(Key string, name string) BusinessError

func WithNameAndErr added in v1.5.1

func WithNameAndErr(Key string, name string, err error) BusinessError

func (BusinessError) Error

func (e BusinessError) Error() string

type MultiErr

type MultiErr map[string]error

func (MultiErr) Error

func (e MultiErr) Error() string

Jump to

Keyboard shortcuts

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