Class DownloadException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DownloadException
    extends java.lang.Exception
    High-level exception type for indicating that something went wrong during the process of generating a download. Implementers are encouraged to inherit from this exception to create more specific types of exceptions for indicating when there are issues with the process.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DownloadException()
      Initializes a new exception instance that will have a null message and cause.
      DownloadException​(java.lang.String message)
      Initializes a new exception instance that will have a specified message and a null cause.
      DownloadException​(java.lang.String message, java.lang.Throwable cause)
      Initializes a new exception instance that will have a specified message and cause.
      DownloadException​(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      Initializes a new exception instance that will have a specified message, cause, and configuration.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DownloadException

        public DownloadException()
        Initializes a new exception instance that will have a null message and cause.
      • DownloadException

        public DownloadException​(java.lang.String message)
        Initializes a new exception instance that will have a specified message and a null cause.
        Parameters:
        message - The detail message that can be retrieved with getMessage()
      • DownloadException

        public DownloadException​(java.lang.String message,
                                 java.lang.Throwable cause)
        Initializes a new exception instance that will have a specified message and cause.
        Parameters:
        message - The detail message that can be retrieved with getMessage()
        cause - The underlying cause of the exception, which can be retrieved with getCause().
      • DownloadException

        public DownloadException​(java.lang.String message,
                                 java.lang.Throwable cause,
                                 boolean enableSuppression,
                                 boolean writableStackTrace)
        Initializes a new exception instance that will have a specified message, cause, and configuration.
        Parameters:
        message - The detail message that can be retrieved with getMessage()
        cause - The underlying cause of the exception, which can be retrieved with getCause().
        enableSuppression - Whether or not suppression is enabled or disabled.
        writableStackTrace - Whether or not the stack trace should be writable.