errors

package
v2.11.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

Cause returns the root cause of this error.

func Format

func Format(format string, values ...interface{}) error

func New

func New(msg ...interface{}) error

Types

type Error

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

func (*Error) Error

func (v *Error) Error() string

func (*Error) Inner

func (v *Error) Inner() error

type ErrorBuilder

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

func Base

func Base(err error) ErrorBuilder

func (ErrorBuilder) Format

func (v ErrorBuilder) Format(format string, values ...interface{}) error

func (ErrorBuilder) Message

func (v ErrorBuilder) Message(msg ...interface{}) error

type HasInnerError

type HasInnerError interface {
	Inner() error
}

Jump to

Keyboard shortcuts

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