errs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Warn

func Warn(err error) error

func Wrap added in v1.1.0

func Wrap(err error, msg string, field ...zap.Field) error

func WrapStack added in v1.1.0

func WrapStack(err error) error

Types

type Error

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

func (*Error) Error

func (s *Error) Error() string

func (*Error) Field

func (s *Error) Field() []zap.Field

func (*Error) Unwrap

func (s *Error) Unwrap() error

type Unwrap

type Unwrap interface {
	Unwrap() error
}

type WarnError

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

func IsWarn

func IsWarn(err error) *WarnError

func (*WarnError) Error

func (s *WarnError) Error() string

func (*WarnError) Unwrap

func (s *WarnError) Unwrap() error

Jump to

Keyboard shortcuts

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