pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasError

func HasError(in, expected error) bool

HasError checks if the given error is the same as, or wraps the given error. Supports errors wrapped using Go's "%w", using `errors.Wrap` and tetratelabs multierror.

Types

type Error

type Error string

Error allows for creating constant errors instead of sentinel ones.

const (
	// FlagErr can be used as formatting string for flag related validation
	// errors where the first variable lists the flag name and the second
	// variable is the actual error.
	FlagErr = "--%s error: %w"

	// ErrRequired is returned when required config options are not provided.
	ErrRequired Error = "required"
)

func (Error) Error

func (e Error) Error() string

Directories

Path Synopsis
Package zipkin provides primitives for creating and configuring a Zipkin tracer for this binary.
Package zipkin provides primitives for creating and configuring a Zipkin tracer for this binary.

Jump to

Keyboard shortcuts

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