er

package
v0.0.0-...-8f76a04 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamedErr

func GetNamedErr(err error) error

func GetOperator

func GetOperator() string

func GetSourceErr

func GetSourceErr(err error) error

func IsNamed

func IsNamed(err, namedErr error) bool

func IsSource

func IsSource(err, sourceErr error) bool

func WithMessage

func WithMessage(err error, msg string) error

func WithNamedErr

func WithNamedErr(err error, named error) error

func WithSourceErr

func WithSourceErr(err error, source error) error

func WrapOp

func WrapOp(err error, op string) error

Types

type Error

type Error struct {
	Ops       []string
	Message   string
	SourceErr error
	NamedErr  error
}

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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