errs

package
v2.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target any) bool

func E

func E(args ...any) error

func Errorf

func Errorf(op Op, format string, a ...any) error

func HasOp

func HasOp(err error, op Op) bool

func Is

func Is(err, target error) bool

func IsCanceledOrDeadline

func IsCanceledOrDeadline(err error) bool

func New

func New(text string) error

func Unwrap

func Unwrap(err error) error

Types

type Error

type Error struct {
	Err error
	Op  Op
	ID  uuid.UUID
}

func (*Error) Cause

func (e *Error) Cause() error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Errors

func (e *Error) Errors() []error

func (*Error) Unwrap

func (e *Error) Unwrap() error

type Op

type Op string

Jump to

Keyboard shortcuts

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