buserr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 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 (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