errors

package
v4.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Join = errors.Join
	As   = errors.As
	Is   = errors.Is
)

Functions

func BubbleUp

func BubbleUp(who error, where string) error

func CommandAssertion added in v4.8.0

func CommandAssertion(where string) error

func EventAssertion added in v4.8.0

func EventAssertion(where string) error

func New added in v4.8.0

func New[Error ~struct{ *Bubble }](bubble *Bubble) *Error

func Panic

func Panic(what, where string)

func QueryAssertion added in v4.8.0

func QueryAssertion(where string) error

Types

type AlreadyExist added in v4.8.0

type AlreadyExist struct{ *Bubble }

type Bubble

type Bubble struct {
	When        time.Time
	Where, What string
	Why         Meta
	Who         error
}

func (*Bubble) Error

func (b *Bubble) Error() string

type Default

type Default struct{ *Bubble }

type Failure added in v4.8.0

type Failure struct{ *Bubble }

type Internal added in v4.8.0

type Internal struct{ *Bubble }

type InvalidValue added in v4.8.0

type InvalidValue struct{ *Bubble }

type Meta

type Meta = map[string]any

type NotExist added in v4.8.0

type NotExist struct{ *Bubble }

Jump to

Keyboard shortcuts

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