errorchain

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorChain

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

func New

func New(err error) *ErrorChain

func NewWithMessage

func NewWithMessage(err error, message string) *ErrorChain

func NewWithMessagef

func NewWithMessagef(err error, format string, a ...any) *ErrorChain

func (*ErrorChain) As

func (ec *ErrorChain) As(target any) bool

func (*ErrorChain) CausedBy

func (ec *ErrorChain) CausedBy(err error) *ErrorChain

func (*ErrorChain) Error

func (ec *ErrorChain) Error() string

func (*ErrorChain) ErrorContext

func (ec *ErrorChain) ErrorContext() any

func (*ErrorChain) Errors

func (ec *ErrorChain) Errors() []error

func (*ErrorChain) Is

func (ec *ErrorChain) Is(target error) bool

func (*ErrorChain) MarshalJSON

func (ec *ErrorChain) MarshalJSON() ([]byte, error)

func (*ErrorChain) MarshalXML

func (ec *ErrorChain) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error

func (*ErrorChain) String

func (ec *ErrorChain) String() string

func (*ErrorChain) Unwrap

func (ec *ErrorChain) Unwrap() error

func (*ErrorChain) WithErrorContext

func (ec *ErrorChain) WithErrorContext(context any) *ErrorChain

Jump to

Keyboard shortcuts

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