ChunkUploadException class

Exception for chunk upload failures (carries resume state).

With concurrent uploads, chunks complete out of order, so resume can no longer assume "all chunks < N are done". completedChunks carries the exact set of indices that succeeded; lastSuccessfulChunk is kept as the contiguous-prefix high-water mark for backward-compatible callers. fileKey must be carried so a resumed upload reuses it — chunks already on the server were encrypted with it.

Implemented types

Constructors

ChunkUploadException(String message, {required String fileUuid, required String uploadKey, required int lastSuccessfulChunk, Set<int>? completedChunks, String? fileKey, Object? originalError})

Properties

completedChunks → Set<int>
final
fileKey → String?
final
fileUuid → String
final
hashCode → int
The hash code for this object.
no setterinherited
lastSuccessfulChunk → int
final
message → String
final
originalError → Object?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uploadKey → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited