DownloadError class sealed
Download error types using sealed classes for exhaustive pattern matching
- Implementers
- Available extensions
Constructors
- DownloadError.canceled()
-
Download was canceled by user
constfactory
- DownloadError.forbidden()
-
HTTP 403 - Access forbidden (invalid token or gated model)
constfactory
- DownloadError.network(String message)
-
Network error (connection issues, timeouts, etc.)
constfactory
- DownloadError.notFound()
-
HTTP 404 - Resource not found
constfactory
- DownloadError.rateLimited()
-
HTTP 429 - Rate limit exceeded
constfactory
- DownloadError.serverError(int statusCode)
-
HTTP 5xx - Server error
constfactory
-
HTTP 401 - Authentication required
constfactory
- DownloadError.unknown(String message)
-
Unknown error
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRetryable → bool
-
Available on DownloadError, provided by the DownloadErrorMessage extension
Returns true if error is recoverable by retryingno setter - requiresUserAction → bool
-
Available on DownloadError, provided by the DownloadErrorMessage extension
Returns true if error requires user actionno setter - 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
-
toTitle(
) → String -
Available on DownloadError, provided by the DownloadErrorMessage extension
Returns a short error title for UI dialogs -
toUserMessage(
) → String -
Available on DownloadError, provided by the DownloadErrorMessage extension
Returns a user-friendly error message
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited