errors

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.ErrUnsupported

Functions

func As

func As(err error, target any) bool

func Is

func Is(err, target error) bool

func Join

func Join(errs ...error) error

func NilParam added in v0.0.5

func NilParam(args ...any) error

NilParam returns an error with the function name if any of the arguments are nil

func NilReceiver added in v0.0.5

func NilReceiver(args ...any) error

NilReceiver returns an error with the function name if any of the arguments are nil func NilReceiver(arg any) error {

func NilReceiverField added in v0.0.5

func NilReceiverField(args ...any) error

NilReceiver returns an error with the function name if any of the arguments are nil

func NotImplemented added in v0.0.5

func NotImplemented() error

NotImplemented returns an error with the function name

func Unwrap

func Unwrap(err error) error

Types

type Error

type Error = errorsGo.Error

func Errorf

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

func New

func New(obj any) *Error

func ParsePanic

func ParsePanic(text string) (*Error, error)

func Wrap

func Wrap(e interface{}, skip int) *Error

func WrapPrefix

func WrapPrefix(e interface{}, prefix string, skip int) *Error

type StackFrame

type StackFrame = errorsGo.StackFrame

func NewStackFrame

func NewStackFrame(pc uintptr) (frame StackFrame)

Jump to

Keyboard shortcuts

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