Struct: retry.MaxAttemptsError

import "../ibm-cos-sdk-go-v2/aws/retry"

Overview

MaxAttemptsError provides the error when the maximum number of attempts have been exceeded.

Implemented Interfaces

types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Attempt int

Err error

Method Details

func (e *MaxAttemptsError) Error() string



11
12
13
// File 'aws/retry/errors.go', line 11

func (e *MaxAttemptsError) Error() string { return fmt.Sprintf("exceeded maximum number of attempts, %d, %v", e.Attempt, e.Err) }

func (e *MaxAttemptsError) Unwrap() error

Unwrap returns the nested error causing the max attempts error. Provides the implementation for errors.Is and errors.As to unwrap nested errors.



17
18
19
// File 'aws/retry/errors.go', line 17

func (e *MaxAttemptsError) Unwrap() error { return e.Err }