Table of Contents

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

T

The 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

message string

The message that describes the error.

failedItems IReadOnlyList<T>

The list of items that failed.

partialMetrics R2Result

The total metrics accumulated during the operation.

innerException Exception

The underlying exception from the S3 SDK.

Properties

FailedItems

Gets the list of items that could not be processed.

public IReadOnlyList<T> FailedItems { get; }

Property Value

IReadOnlyList<T>