KoolbaseUploadExpiredException class
Thrown when an upload would push the bucket past its configured
max_size_bytes quota — the server responds with 409 Conflict and code
quota_exceeded. The server cleans up the underlying R2 object before
returning; nothing leaks. Catch this to surface a "bucket is full"
message or prompt the caller to delete older files. The per-bucket
quota is set at bucket creation time and is currently immutable.
Distinct from KoolbaseStorageConflictException (which also uses 409 but means "path collides"); branch on the exception type, not status. The presigned upload was confirmed after its window closed.
An upload URL has a lifetime. A user who picks a file, gets distracted and comes back later hits this — so it is a retry, not a failure: presign again and send the same bytes. Worth catching rather than showing "upload failed" to someone whose file was fine.
- Inheritance
-
- Object
- KoolbaseException
- KoolbaseStorageException
- KoolbaseUploadExpiredException
Constructors
- KoolbaseUploadExpiredException([String message = 'This upload is past the confirmation window — please re-upload'])
-
const
Properties
- code → String?
-
The server's stable error code, when it sent one. Prefer branching on the
exception type; this is for logging and for codes the SDK does not yet map.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What went wrong, in words. From the server where it said something useful.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited