internal

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLegacyCallback

func SetLegacyCallback(f func(src, target error))

Types

type Error

type Error struct {
	Message string
	Err     error

	Binary     string
	StackTrace []string
	Code       string
	Source     string
	KV         []models.KeyValue
}

func (*Error) Error

func (je *Error) Error() string

func (*Error) Format

func (je *Error) Format(state fmt.State, _ rune)

Format satisfies the fmt.Formatter interface providing customizable formatting:

%s, %v formats all wrapped error messages concatenated with ": ".
%+v, %#v does the above but also adds error parameters; "(k1=v1, k2=v2)".

func (*Error) FormatError

func (je *Error) FormatError(p xerrors.Printer) error

FormatError implements the Formatter interface for optionally detailed error message rendering - see the Go 2 error printing draft proposal for details.

func (*Error) Is

func (je *Error) Is(target error) bool

Is returns true if the errors are equal as values, or the target is also a jettison error and contains the same code as the target.

func (*Error) String

func (je *Error) String() string

func (*Error) Unwrap

func (je *Error) Unwrap() error

Jump to

Keyboard shortcuts

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