errors

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 2 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 Is

func Is(err, target error) bool

func Join

func Join(errs ...error) error

func New

func New(message string) error

func Unwrap

func Unwrap(err error) error

func WithStack

func WithStack(err error) error

Types

type Error

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

func (*Error) Error

func (e *Error) Error() string

func (*Error) Stack

func (e *Error) Stack() []byte

type SentinelError

type SentinelError string

func (SentinelError) Error

func (e SentinelError) Error() string

type StackError

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

func (*StackError) Error

func (e *StackError) Error() string

func (*StackError) Stack

func (e *StackError) Stack() []byte

func (*StackError) Unwrap

func (e *StackError) Unwrap() error

type Stacker

type Stacker interface {
	Stack() []byte
}

Jump to

Keyboard shortcuts

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