errorhelpers

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelError

func LabelError(label string, err error) error

Types

type LabeledError

type LabeledError struct {
	// contains filtered or unexported fields
}

func (LabeledError) Error

func (l LabeledError) Error() string

Error returns the error as a message string (to implement the error interface).

func (LabeledError) Label

func (l LabeledError) Label() string

Label returns the label for the error.

func (LabeledError) Unwrap

func (l LabeledError) Unwrap() error

Unwrap returns the underlying error.

Jump to

Keyboard shortcuts

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