errorhandler

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 7 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyHandled = errors.New("error already handled")
	RedFunc           = ui.ErrorColor.SprintFunc()
)

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler interface {
	HandleError(err error) error
}

func NewErrorHandler

func NewErrorHandler(
	format string,
	outputWriter io.Writer,
	logWriter io.Writer,
) ErrorHandler

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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