errors

package
v0.0.0-...-fe78ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Err

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

func Wrap

func Wrap(msg string, err error) *Err

Wrap returns a new `Err` that wraps the given error `err`.

func (*Err) Error

func (err *Err) Error() string

Error implements `error`

func (*Err) Format

func (err *Err) Format(f fmt.State, c rune)

Format implements `fmt.Formatter`

func (*Err) FormatError

func (err *Err) FormatError(p xerrors.Printer) error

FormatError implements `xerrors.Formatter`

func (*Err) Unwrap

func (err *Err) Unwrap() error

Unwrap implements `xerrors.Wrapper`

Jump to

Keyboard shortcuts

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