errors

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Because

func Because(underlying *underlying, cause error, fields ...zap.Field) *node

func CausedBy

func CausedBy(src error, target error, deepFirst bool) bool

func CausedByNode

func CausedByNode(src error, target error, deepFirst bool) (isCausedBy bool, causeNode error)

func Is

func Is(src error, target error) bool

func JSONMarshallable

func JSONMarshallable(err error) error

func New

func New(code, message string) *underlying

func NewSysErr

func NewSysErr(message string) error

func Note

func Note(err error, fields ...zap.Field) *node

Types

type JsonErr

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

func (JsonErr) MarshalJSON

func (e JsonErr) MarshalJSON() ([]byte, error)

type Message

type Message interface {
	Code() string
	Message() string
}

type Tracer

type Tracer interface {
	Stack() []uintptr
}

Jump to

Keyboard shortcuts

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