errors

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrAs

func ErrAs[T error](err error) (ok bool, target T)

func ErrIs

func ErrIs(err error, errs ...error) bool

Types

type Error

type Error struct {
	Err error
	// contains filtered or unexported fields
}

func Err

func Err(err Error, stmID string, extra any) Error

func New

func New(msg string) Error

func WithStream

func WithStream(e Error, stmID string) Error

func (Error) Error

func (e Error) Error() string

func (Error) Extra

func (e Error) Extra() any

func (Error) Is

func (e Error) Is(err error) bool

func (Error) StreamID

func (e Error) StreamID() string

func (Error) Unwrap

func (e Error) Unwrap() error

Jump to

Keyboard shortcuts

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