errors

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

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

Go to latest
Published: Aug 2, 2023 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	As     = errors.As
	Is     = errors.Is
	New    = errors.New
	Msg    = errors.New
	Unwrap = errors.Unwrap
)
View Source
var ErrUnimplemented = Msg("unimplemented")

Functions

func Arg

func Arg(argName string, err error, fields ...EntityError) error

func ArgMsg

func ArgMsg(argName, errMsg string, fields ...EntityError) error

func ArgWrap

func ArgWrap(argName, contextMessage string, err error, fields ...EntityError) error

func IsCallError

func IsCallError(e error) bool

func Wrap

func Wrap(contextMessage string, causeErr error) error

Types

type ArgumentError

type ArgumentError interface {
	ArgumentName() string
}

type CallError

type CallError interface {
	error
	CallError()
}

type EntityError

type EntityError interface {
	error
	EntityIdentifier() string
}

func Ent

func Ent(entityIdentifier string, err error) EntityError

func EntMsg

func EntMsg(entityIdentifier string, errMsg string) EntityError

type Unwrappable

type Unwrappable interface {
	error
	Unwrap() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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