errors

package module
v0.0.0-...-54c5be7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IllegalArgumentError = New("illegal argument")
View Source
var Logger = log.New(os.Stderr, "[error] ", 0)

Functions

func Fatal

func Fatal(errOrStr interface{})

func Fatalf

func Fatalf(format string, a ...interface{})

func Is

func Is(err error, original error) bool

func Print

func Print(errOrStr interface{})

func Printf

func Printf(format string, a ...interface{})

Types

type Error

type Error struct {
	Err error
	// contains filtered or unexported fields
}

func Errorf

func Errorf(format string, a ...interface{}) *Error

func New

func New(errOrStr interface{}) *Error

func NewSuffix

func NewSuffix(errOrStr interface{}, suffix string) *Error

func Wrap

func Wrap(errOrStr interface{}, skip ...int) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) ErrorStack

func (e *Error) ErrorStack() string

Jump to

Keyboard shortcuts

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