richerror

package
v0.0.0-...-b3f0c1d Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Op

type Op string

type RichError

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

func Analysis

func Analysis(err error) (RichError, error)

func (RichError) Error

func (e RichError) Error() string

func (RichError) Get

func (e RichError) Get() map[string]interface{}

func (RichError) Kind

func (e RichError) Kind() kind.Kind

func (RichError) Message

func (e RichError) Message() string

func (RichError) Meta

func (e RichError) Meta() map[string]interface{}

func (RichError) Op

func (e RichError) Op() Op

func (RichError) StackTrace

func (e RichError) StackTrace() map[string]interface{}

func (RichError) WrappedError

func (e RichError) WrappedError() error

type RichErrorBuilder

type RichErrorBuilder struct {
	RichError
}

func New

func New(op Op) RichErrorBuilder

func (RichErrorBuilder) Build

func (r RichErrorBuilder) Build() RichError

func (RichErrorBuilder) Error

func (r RichErrorBuilder) Error() string

func (RichErrorBuilder) Kind

func (r RichErrorBuilder) Kind() kind.Kind

func (RichErrorBuilder) Message

func (r RichErrorBuilder) Message() string

func (RichErrorBuilder) Meta

func (r RichErrorBuilder) Meta() map[string]interface{}

func (RichErrorBuilder) Op

func (r RichErrorBuilder) Op() Op

func (RichErrorBuilder) WithErr

func (r RichErrorBuilder) WithErr(err error) RichErrorBuilder

func (RichErrorBuilder) WithKind

func (r RichErrorBuilder) WithKind(kind kind.Kind) RichErrorBuilder

func (RichErrorBuilder) WithMessage

func (r RichErrorBuilder) WithMessage(message string) RichErrorBuilder

func (RichErrorBuilder) WithMeta

func (r RichErrorBuilder) WithMeta(meta map[string]interface{}) RichErrorBuilder

func (RichErrorBuilder) WithOp

func (r RichErrorBuilder) WithOp(op Op) RichErrorBuilder

func (RichErrorBuilder) WithStackTrace

func (r RichErrorBuilder) WithStackTrace(message ...string) RichErrorBuilder

func (RichErrorBuilder) WrappedError

func (r RichErrorBuilder) WrappedError() error

Jump to

Keyboard shortcuts

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