Package enterprises.iwakura.amber
Class DownloadResult
java.lang.Object
enterprises.iwakura.amber.DownloadResult
- Direct Known Subclasses:
StringDownloadResult
Represents the result of a download operation, indicating success or failure and providing an error message if applicable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadResultCreates a DownloadResult representing a failed download with the provided error message.static DownloadResultsuccess()Creates a DownloadResult representing a successful download.
-
Constructor Details
-
DownloadResult
public DownloadResult()
-
-
Method Details
-
error
Creates a DownloadResult representing a failed download with the provided error message.- Parameters:
errorMessage- the error message describing the failure- Returns:
- a DownloadResult indicating failure
-
success
Creates a DownloadResult representing a successful download.- Returns:
- a DownloadResult indicating success
-