Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPRetryDelay ¶
func GetHTTPRetryDelay(errorInfo *HTTPGraphError, attempt int) time.Duration
GetHTTPRetryDelay calculates the appropriate retry delay - mirrors SDK logic
Types ¶
type HTTPGraphError ¶
type HTTPGraphError struct {
StatusCode int
ErrorCode string
ErrorMessage string
Target string
IsODataError bool
AdditionalData map[string]interface{}
Headers map[string][]string
RequestDetails string
RetryAfter string
RequestID string
ClientRequestID string
ErrorDate string
InnerErrors []errors.InnerErrorInfo
ErrorDetails []errors.ErrorDetailInfo
CorrelationID string
ThrottledReason string
Category errors.ErrorCategory
DiagnosticInfo string
ResponseBody string
}
HTTPGraphError represents a comprehensive Graph API error extracted from HTTP responses This mirrors the errors.GraphErrorInfo structure but for raw HTTP calls
func ExtractHTTPGraphError ¶
func ExtractHTTPGraphError(ctx context.Context, httpResp *http.Response) *HTTPGraphError
ExtractHTTPGraphError extracts and analyzes error information from HTTP Graph API responses This is an exact replica of errors.GraphError but for raw HTTP calls
Click to show internal directories.
Click to hide internal directories.