werr

package
v0.0.0-...-bdd9120 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDetails

func ExtractDetails(err error) []interface{}

func Skin

func Skin(err error) error

Types

type Retriable

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

func AsRetriable

func AsRetriable(err error) (Retriable, bool)

func NewRetriable

func NewRetriable(err error) Retriable

func (Retriable) Unwrap

func (x Retriable) Unwrap() error

func (Retriable) UnwrapSkinny

func (x Retriable) UnwrapSkinny() error

type RichError

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

func AsRichError

func AsRichError(err error) (*RichError, bool)

func NewRichError

func NewRichError(err error, details ...interface{}) *RichError

func (*RichError) Error

func (this *RichError) Error() string

func (*RichError) Format

func (this *RichError) Format(s fmt.State, verb rune)

func (*RichError) Unwrap

func (this *RichError) Unwrap() error

type RichInfoStyle

type RichInfoStyle int
const (
	RichInfoStyle_JSON RichInfoStyle = iota
	RichInfoStyle_JSONFriendly
)
var InfoStyle RichInfoStyle

type Skinny

type Skinny interface {
	UnwrapSkinny() error
	Error() string
}

Jump to

Keyboard shortcuts

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