errors

package
v0.0.0-...-d2cf98a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToField

func ToField(err error) zap.Field

func ToNamedField

func ToNamedField(key string, err error) zap.Field

Types

type StructuredError

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

func Structured

func Structured(causeOrMessage interface{}, raw ...interface{}) *StructuredError

func (StructuredError) Cause

func (e StructuredError) Cause() error

func (StructuredError) Error

func (e StructuredError) Error() string

func (StructuredError) MarshalLogObject

func (e StructuredError) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (StructuredError) Unwrap

func (e StructuredError) Unwrap() error

Jump to

Keyboard shortcuts

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