errorx

package
v0.0.0-...-e56f5d9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRecoverable

func IsRecoverable(err error) bool

IsRecoverable checks if error is unrecoverable error

func Unrecoverable

func Unrecoverable(err error) error

Unrecoverable returns an unrecoverable error

Types

type Errors

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

Errors represents list of errors

func NewErrors

func NewErrors(offset int) *Errors

func (*Errors) Add

func (e *Errors) Add(err error)

func (*Errors) Combine

func (e *Errors) Combine(errs ...error)

func (Errors) Error

func (e Errors) Error() string

func (Errors) Is

func (e Errors) Is(err error) bool

func (Errors) Unwrap

func (e Errors) Unwrap() error

Unwrap pops up the last error for compatibility with errors.Unwrap()

func (Errors) WrappedErrors

func (e Errors) WrappedErrors() []error

WrappedErrors returns the list of errors

type XError

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

func New

func New(code uint64, msg string) XError

func (XError) Code

func (x XError) Code() uint64

func (XError) Error

func (x XError) Error() string

func (XError) Is

func (x XError) Is(err error) bool

Jump to

Keyboard shortcuts

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