errors

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

func StackTrace

func StackTrace(err error) string

func Wrap

func Wrap(err error, msg string) error

Types

type ApiCoder

type ApiCoder interface {
	Code() int
	Message() string
	Reference() string
	Error() string
}

func AsApiCoder

func AsApiCoder(err error) ApiCoder

func New

func New(code int, message string, reference ...string) ApiCoder

Jump to

Keyboard shortcuts

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