errort

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: 3 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 GetTrace

func GetTrace(err error) (trace string)

Types

type ErrorWithTrace

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

type StdError

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

func GetStdError added in v1.4.6

func GetStdError(err error) (stdErr *StdError)

func NewErr

func NewErr(msg string, warpCount int) *StdError

func NewFromError

func NewFromError(err error, warpCount int) *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