Class DownloadException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class DownloadException extends IOException
Exceptions thrown when there is an issue with downloading a document through DownloadJob/UrlDataProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
DownloadException.DownloadOnMainThreadException
Thrown if you try to open a remote document/image with any of the PdfDocumentLoader or ImageDocumentLoader open methods on the main thread. If you really need to do a blocking call on the main thread use either:
openDocumentAsync(...).subscribeOn(Schedulers.io()).blockingGet()
or better
openDocumentAsync(...).subscribeOn(Schedulers.io()).blockingSubscribe( { document -> ... }, { error -> ... } )
public final class
DownloadException.OutputFolderException
Thrown when we can't create the folder for the downloaded file.
public final class
DownloadException.DownloadFileException
Thrown when we run into file system issues with the download file for the download job
public final class
DownloadException.OutputFileException
Thrown when we run into file system issues with the output file for the download job.
public final class
DownloadException.NetworkException
Something network related occurred during the download process. Usually an IOException, the original exception can be accessed through cause
public final class
DownloadException.NotEnoughDiskSpaceException
Thrown when there is not enough disk space to download the document.
-