xerror

package
v0.0.0-...-9f39f39 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(left string, right error) error

func Stack

func Stack(skip int) []byte

Stack returns a nicely formatted stack frame, skipping skip frames.

Types

type BusinessError

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

func NewBusinessError

func NewBusinessError(code string, msg string) *BusinessError

func (*BusinessError) Error

func (e *BusinessError) Error() string

type IError

type IError interface {
	Error() string
	Detail() string
	Info() string
}

Jump to

Keyboard shortcuts

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