zerrors

package
v0.0.0-...-9e2b535 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextError

type ContextError struct {
	Title           string        `json:",omitempty"`
	SubContextError *ContextError `json:",omitempty"`
	WrappedError    error         `json:"-"`
	KeyValues       zdict.Dict    `json:",omitempty"`
}

func ContextErrorFromError

func ContextErrorFromError(err error) (ContextError, bool)

func MakeContextError

func MakeContextError(dict zdict.Dict, parts ...any) ContextError

func (*ContextError) AddSub

func (e *ContextError) AddSub(dict zdict.Dict, parts ...any)

func (ContextError) Error

func (e ContextError) Error() string

func (*ContextError) GetLowerCaseMatchContent

func (e *ContextError) GetLowerCaseMatchContent() string

func (ContextError) GetTitle

func (e ContextError) GetTitle() string

func (*ContextError) SetError

func (e *ContextError) SetError(err error)

func (*ContextError) SetKeyValue

func (e *ContextError) SetKeyValue(key string, value any)

func (ContextError) String

func (e ContextError) String() string

func (*ContextError) UnmarshalJSON

func (ce *ContextError) UnmarshalJSON(data []byte) error

func (ContextError) Unwrap

func (e ContextError) Unwrap() error

Jump to

Keyboard shortcuts

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