errorutil

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PermissionDenied

func PermissionDenied(reason types.PermissionDeniedDetails_Reason, format string, args ...interface{}) error

PermissionDenied formats a PermissionDenied error with an error string.

func WrapError

func WrapError(err error, newErrStr string) error

WrapError creates a new error in the format: "<newErrStr>: <err>". This function is intended to be used to wrap errors when an error is received from calling a function/method inside of a function or private method.

Types

This section is empty.

Jump to

Keyboard shortcuts

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