error

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(opts ...HandlerOption) emperror.Handler

NewHandler returns a new error handler.

Types

type HandlerOption

type HandlerOption func(o *options)

HandlerOption sets options in the error handler.

func Conditional added in v0.2.0

func Conditional(c bool, op HandlerOption) HandlerOption

Conditional applies an option if the condition is true. This is useful to avoid using conditional logic when building the option list.

func Handler added in v0.2.0

func Handler(h emperror.Handler) HandlerOption

Handler appends a handler to the handler stack.

func Logger

func Logger(l log.Logger) HandlerOption

Logger sets a logger instance.

Jump to

Keyboard shortcuts

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