Table of Contents

Class CloudflareR2ListException<T>

Namespace
Cloudflare.NET.R2.Exceptions
Assembly
Cloudflare.NET.R2.dll

Represents an exception thrown during a paginated list operation where the operation failed mid-stream. This exception provides access to the data that was successfully retrieved before the failure occurred.

public class CloudflareR2ListException<T> : CloudflareR2OperationException, ISerializable

Type Parameters

T

The type of the items being listed.

Inheritance
CloudflareR2ListException<T>
Implements
Inherited Members

Constructors

CloudflareR2ListException(string, IReadOnlyList<T>, R2Result, Exception)

Initializes a new instance of the CloudflareR2ListException<T> class.

public CloudflareR2ListException(string message, IReadOnlyList<T> partialData, R2Result partialMetrics, Exception innerException)

Parameters

message string

The message that describes the error.

partialData IReadOnlyList<T>

The data that was successfully retrieved.

partialMetrics R2Result

The metrics accumulated before the error occurred.

innerException Exception

The underlying exception from the S3 SDK.

Properties

PartialData

Gets the list of items that were successfully fetched before the operation failed.

public IReadOnlyList<T> PartialData { get; }

Property Value

IReadOnlyList<T>