Class DownloadException

    • 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail