zap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsChainContext

func AsChainContext(err error) []zap.Field

func AsContext

func AsContext(err error) []zap.Field

Types

type Error

type Error struct {
	*errorcontext.BaseError[[]zap.Field]
}

func FromPanic

func FromPanic(p errorcontext.Panic) *Error

func NewError

func NewError(err error, context ...zap.Field) *Error

func (*Error) AddContextFields

func (e *Error) AddContextFields(f ...zap.Field)

func (*Error) Context

func (e *Error) Context() []zap.Field

func (*Error) MarkAsPanic

func (e *Error) MarkAsPanic() *Error

Jump to

Keyboard shortcuts

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