usererror

package
v0.0.0-...-b7a57f2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Err = &E{}

Err is a instatiation of E to be used for comparison with `errors.As(usererror.Err)` DO NOT WRITE TO Err!!

Functions

This section is empty.

Types

type E

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

func Wrap

func Wrap(err error) *E

Wrap an existing error and annotate it with the user error type which is intended to be shown to the user on a cli.

func Wrapm

func Wrapm(err error, msg string) *E

func (*E) Error

func (e *E) Error() string

func (*E) Msg

func (e *E) Msg() string

func (*E) Unwrap

func (e *E) Unwrap() error

Jump to

Keyboard shortcuts

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