errors

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Wrap   = errors.Wrap
	Wrapf  = errors.Wrapf
	New    = errors.New
	Errorf = errors.Errorf
)

hoist some error functions for convenience

Functions

func GetInternalError

func GetInternalError(err error) error

func GetPublicMessage

func GetPublicMessage(err error) *string

func NewPublic

func NewPublic(msg string) error

NewPublic return a new error with public message

func NewPublicf

func NewPublicf(format string, args ...interface{}) error

NewPublicf returns a new formatted error with public message

func PublicWrap

func PublicWrap(err error, publicMsg string) error

PublicWrap wraps an error with a public message

func PublicWrapf

func PublicWrapf(err error, publicMsgFormat string, args ...interface{}) error

PublicWrapf wraps an error with a public message

Types

This section is empty.

Jump to

Keyboard shortcuts

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