errors

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoError      = ""
	ErrUnknown   = "unknown-error"
	ErrIOTimeout = "io.timeout"
	ErrIOClosed  = "io.closed"
	ErrIOEOF     = "io.EOF"
)

Variables

This section is empty.

Functions

func Code

func Code(err error) string

Types

type TraceError

type TraceError struct {
	Raise error

	File   string
	Method string
	Line   int
	// contains filtered or unexported fields
}

func New

func New(code, format string, args ...interface{}) *TraceError

func Raise

func Raise(raise error, code, format string, args ...interface{}) *TraceError

func Wrap

func Wrap(raise error) *TraceError

func (*TraceError) Code

func (err *TraceError) Code() string

func (*TraceError) Error

func (err *TraceError) Error() string

func (*TraceError) Tracing

func (err *TraceError) Tracing() *TraceError

Jump to

Keyboard shortcuts

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