errors

package
v2.19.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errors is a drop-in replacement for Golang lib 'errors'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause added in v1.1.0

func Cause(err error) error

Cause returns the root cause of this error.

func Format

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

func IsActionRequired

func IsActionRequired(err error) bool

Types

type Error added in v1.1.0

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

Error is an error object with underlying error.

func Base

func Base(err error) Error

Base returns an Error based on the given error.

func New added in v1.1.0

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

New returns a new error object with message formed from given arguments.

func (Error) ActionRequired

func (v Error) ActionRequired() bool

func (Error) Error added in v1.1.0

func (v Error) Error() string

Error implements error.Error().

func (Error) Format

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

func (Error) Inner added in v1.1.0

func (v Error) Inner() error

Inner implements hasInnerError.Inner()

func (Error) Message

func (v Error) Message(msg ...interface{}) Error

func (Error) RequireUserAction

func (v Error) RequireUserAction() Error

Jump to

Keyboard shortcuts

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