erroru

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

@Time : 2019-11-11 13:43 @Author : zr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(srcRootPath string) (err error)

Types

type ErrorWithTrace added in v1.4.3

type ErrorWithTrace interface {
	error
	Unwrap() error
	ErrorWithTrace() string
}

func StdErrorFrom

func StdErrorFrom(err error) (stdErr ErrorWithTrace)

type StdError

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

func AddInfo

func AddInfo(msg string, err error) *StdError

func NewErr added in v1.4.2

func NewErr(msg string, warpCount int) *StdError

func NewErrFromError added in v1.4.4

func NewErrFromError(err error, warpCount int) *StdError

func Warp

func Warp(err error) *StdError

func (*StdError) Error

func (s *StdError) Error() string

func (*StdError) ErrorWithTrace

func (s *StdError) ErrorWithTrace() string

func (*StdError) Unwrap

func (s *StdError) Unwrap() error

Jump to

Keyboard shortcuts

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