errors

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 5 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detail

func Detail(err error) string

func Err

func Err(err error) error

func New

func New(msg string) error

Types

type ErrorInfo

type ErrorInfo struct {
	// contains filtered or unexported fields
}

func Info

func Info(err error, cmd ...interface{}) *ErrorInfo

func InfoEx

func InfoEx(calldepth int, err error, cmd ...interface{}) *ErrorInfo

func (*ErrorInfo) AppendErrorDetail

func (r *ErrorInfo) AppendErrorDetail(b []byte) []byte

func (*ErrorInfo) Detail

func (r *ErrorInfo) Detail(err error) *ErrorInfo

func (*ErrorInfo) Error

func (r *ErrorInfo) Error() string

func (*ErrorInfo) ErrorDetail

func (r *ErrorInfo) ErrorDetail() string

func (*ErrorInfo) NestedObject

func (r *ErrorInfo) NestedObject() interface{}

func (*ErrorInfo) SummaryErr

func (r *ErrorInfo) SummaryErr() error

Jump to

Keyboard shortcuts

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