Class CloudflareR2BatchException<T>
- Namespace
- Cloudflare.NET.R2.Exceptions
- Assembly
- Cloudflare.NET.R2.dll
Represents an exception thrown during a batch operation (e.g., DeleteObjectsAsync) where some items failed to be processed. This exception contains the list of items that failed, allowing for targeted retries.
public class CloudflareR2BatchException<T> : CloudflareR2OperationException, ISerializable
Type Parameters
TThe type of the items that failed.
- Inheritance
-
CloudflareR2BatchException<T>
- Implements
- Inherited Members
Constructors
CloudflareR2BatchException(string, IReadOnlyList<T>, R2Result, Exception)
Initializes a new instance of the CloudflareR2BatchException<T> class.
public CloudflareR2BatchException(string message, IReadOnlyList<T> failedItems, R2Result partialMetrics, Exception innerException)
Parameters
messagestringThe message that describes the error.
failedItemsIReadOnlyList<T>The list of items that failed.
partialMetricsR2ResultThe total metrics accumulated during the operation.
innerExceptionExceptionThe underlying exception from the S3 SDK.
Properties
FailedItems
Gets the list of items that could not be processed.
public IReadOnlyList<T> FailedItems { get; }