errorutil

package
v1.8.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PermissionDenied added in v1.4.2

func PermissionDenied(reason types.PermissionDeniedDetails_Reason, format string, args ...any) 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