errors

package
v2.19.2+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

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

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

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

func (v Error) Error() string

Error implements error.Error().

func (Error) Format

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

func (Error) Inner

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