Returns the retry predicate with the conditions specified for retrying.
FromErrorCodes(params int[])
public static RetryPredicate FromErrorCodes(params int[] errorCodes)
Returns a predicate which will retry on the specified HTTP error codes.
Note that only these error codes will be retried; the default error codes are not used by the returned predicate.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eRetryPredicate\u003c/code\u003e class within the Google Cloud Storage v1 API for .NET, which defines conditions for retrying failed operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class is immutable and provides static properties \u003ccode\u003eNever\u003c/code\u003e to disable retries and \u003ccode\u003eRetriableIdempotentErrors\u003c/code\u003e for default retriable error codes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFromErrorCodePredicate\u003c/code\u003e method enables custom retry logic based on HTTP error codes using a provided delegate.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFromErrorCodes\u003c/code\u003e method allows specifying a set of HTTP error codes for retries, overriding the default behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists different versions of the package from 4.11.0 down to 3.4.0, with 4.11.0 being the latest version.\u003c/p\u003e\n"]]],[],null,[]]