errors

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 3 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 Cause

func Cause(err error) error

func Is

func Is(err, target error) bool

Types

type Error

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

func Errorf

func Errorf(format string, args ...interface{}) *Error

func New

func New(message string) *Error

func Wrap

func Wrap(err error, msg string) *Error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) *Error

func (*Error) Cause

func (e *Error) Cause() error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Stacktrace

func (e *Error) Stacktrace() stack.Trace

func (*Error) Unwrap

func (e *Error) Unwrap() error

func (*Error) WithStacktrace

func (e *Error) WithStacktrace() *Error

Jump to

Keyboard shortcuts

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