errors

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ZonalAllocationFailedAzErrorCode is an Azure error code indicating that there is insufficient capacity in the target zone.
	ZonalAllocationFailedAzErrorCode = "ZonalAllocationFailed"
	// CorrelationRequestIDAzHeaderKey is the Azure API response header key whose value is a request correlation ID.
	CorrelationRequestIDAzHeaderKey = "x-ms-correlation-request-id"
	// RequestIDAzHeaderKey is the Azure API response header key whose value is the request ID.
	RequestIDAzHeaderKey = "x-ms-request-id"
	// ErrorCodeAzHeaderKey is the Azure API response header key whose value is the underline error code as set by the server.
	ErrorCodeAzHeaderKey = "x-ms-error-code"
	// ClientRequestIDAzHeaderKey is the Azure API response header key whose value is the client request ID.
	ClientRequestIDAzHeaderKey = "x-ms-client-request-id"
)

Variables

This section is empty.

Functions

func GetMatchingErrorCode

func GetMatchingErrorCode(err error) codes.Code

GetMatchingErrorCode gets a matching codes.Code for the given azure error code.

func IsNotFoundAzAPIError

func IsNotFoundAzAPIError(err error) bool

IsNotFoundAzAPIError checks if error is an AZ API error and if it is a 404 response code.

func LogAzAPIError

func LogAzAPIError(err error, format string, v ...any)

LogAzAPIError collects additional information from AZ response and logs it as part of the error log message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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