Ads API .NET library
|
Error handler for bulk job requests. More...
Public Member Functions | |
BulkJobErrorHandler (AdsUser user) | |
Initializes a new instance of the BulkJobErrorHandler class. More... | |
override bool | ShouldRetry (Exception ex) |
Checks if an API call should be retried when an exception occurs. More... | |
override bool | IsTransientError (Exception exception) |
Determines whether the exception thrown by the server is a transient error. More... | |
override void | PrepareForRetry (Exception exception) |
Prepares the system for retrying the last failed call. More... | |
![]() | |
ErrorHandler (AppConfig config) | |
Initializes a new instance of the ErrorHandler class. More... | |
virtual void | DoExponentialBackoff () |
Does the exponential backoff. More... | |
virtual bool | HaveMoreRetryAttemptsLeft () |
Checks if there are more retry attempts left. More... | |
virtual void | IncrementRetriedAttempts () |
Increment the counter for attempts retried. More... | |
Additional Inherited Members | |
![]() | |
const int | WAIT_TIME = 30000 |
Wait time in ms to wait before retrying a call. The actual retry time will be higher due to exponential backoff. More... | |
readonly AppConfig | config |
The application configuration. More... | |
Error handler for bulk job requests.
|
inline |
Initializes a new instance of the BulkJobErrorHandler class.
user | The AdWords user. |
|
inlinevirtual |
Determines whether the exception thrown by the server is a transient error.
exception | The exception. |
Reimplemented from Google.Api.Ads.Common.Lib.ErrorHandler.
References Google.Api.Ads.AdWords.Util.BatchJob.CloudStorageError.code, and Google.Api.Ads.AdWords.Util.BatchJob.AdWordsBulkRequestException.error.
|
inlinevirtual |
Prepares the system for retrying the last failed call.
exception | The exception. |
Reimplemented from Google.Api.Ads.Common.Lib.ErrorHandler.
|
inlinevirtual |
Checks if an API call should be retried when an exception occurs.
ex | The exception. |
Reimplemented from Google.Api.Ads.Common.Lib.ErrorHandler.