errors

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindUnknown = iota
	KindBadRequest
	KindUnexpected
	KindAlreadyExists
)

Kind enums

Variables

This section is empty.

Functions

func E

func E(op Op, args ...interface{}) error

func Is

func Is(err error, kind int) bool

func Kind

func Kind(err error) int

func KindText

func KindText(err Error) string

Types

type Error

type Error struct {
	Kind int
	Op   Op
	Err  error
}

func (Error) Error

func (e Error) Error() string

type Op

type Op string

func Ops

func Ops(err Error) []Op

func (Op) String

func (o Op) String() string

Jump to

Keyboard shortcuts

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