errutils

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, msg string) bool

func CheckProperty

func CheckProperty(properties map[string]string, property string) (string, error)

func ErrorString

func ErrorString(err error) string

func FailOnError

func FailOnError(err error, msg string)

func PrintError

func PrintError(err error)

PrintError should pretty-print the error using a more user-friendly format

func PrintErrors

func PrintErrors(errors []error)

func PrintWarning

func PrintWarning(err error)

PrintWarning prints the error as a warning. The error is pretty-printed if the error implements the PrettyPrintableError interface

func PrintWarnings

func PrintWarnings(errors []error)

Types

type PrettyPrintableError

type PrettyPrintableError interface {
	PrettyError() string
}

Jump to

Keyboard shortcuts

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