DownloadAssetsException class

Exception thrown during asset download operations in DownloadAssetsControllerImpl.

This exception provides information about any errors that occur during asset downloads. It includes an optional underlying exception that caused the error and a boolean flag downloadCancelled indicating if the download was explicitly cancelled by the user.

Example usage:

try {
  // Perform asset download operation
} on DownloadAssetsException catch (e) {
  if (e.downloadCancelled) {
    // Handle download cancellation
  } else {
    // Handle other download-related errors
  }
}
Implemented types

Constructors

DownloadAssetsException(String _message, {Exception? exception, bool downloadCancelled = false})
Creates a new instance of DownloadAssetsException.

Properties

downloadCancelled bool
Indicates if the download was explicitly cancelled by the user.
final
exception Exception?
The underlying exception that caused the error.
final
hashCode int
The hash code for this object.
no setterinherited
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.
override

Operators

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