richerror

package
v0.0.0-...-834ce46 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	KindInvalid Kind = iota + 1
	KindForbidden
	KindNotFound
	KindUnexpected
)

type RichError

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

func New

func New(operation string) RichError

func (RichError) Error

func (r RichError) Error() string

func (RichError) Kind

func (r RichError) Kind() Kind

func (RichError) Message

func (r RichError) Message() string

func (RichError) WhitKind

func (r RichError) WhitKind(kind Kind) RichError

func (RichError) WhitMeta

func (r RichError) WhitMeta(meta map[string]interface{}) RichError

func (RichError) WithKind

func (r RichError) WithKind(kind Kind) RichError

func (RichError) WithMessage

func (r RichError) WithMessage(message string) RichError

func (RichError) WithWrappedError

func (r RichError) WithWrappedError(err error) RichError

Jump to

Keyboard shortcuts

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