errorhandler

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 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