azure_errors

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsAugmented

func AsAugmented(err error) error

AsAugmented checks whether an error returned by the Azure SDK matched some known Azure errors. If the error matches, it produces a new, augmented error by adding information we think will help the user use the plugin correctly. If it didn't match, it returns the error as is.

This is useful for how we want to do error handling in the plugin. We don't need to know which errors occurred. We just want to log them. But, when we log them, we want as much helpful information as possible to be logged.

  • err: An error returned by the Azure SDK.

Types

This section is empty.

Jump to

Keyboard shortcuts

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