Package com.adobe.cq.dam.download.api
Class DownloadException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adobe.cq.dam.download.api.DownloadException
-
- All Implemented Interfaces:
Serializable
public class DownloadException extends 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 anullmessage and cause.DownloadException(String message)Initializes a new exception instance that will have a specified message and anullcause.DownloadException(String message, Throwable cause)Initializes a new exception instance that will have a specified message and cause.DownloadException(String message, 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
-
-
-
-
Constructor Detail
-
DownloadException
public DownloadException()
Initializes a new exception instance that will have anullmessage and cause.
-
DownloadException
public DownloadException(String message)
Initializes a new exception instance that will have a specified message and anullcause.- Parameters:
message- The detail message that can be retrieved withgetMessage()
-
DownloadException
public DownloadException(String message, Throwable cause)
Initializes a new exception instance that will have a specified message and cause.- Parameters:
message- The detail message that can be retrieved withgetMessage()cause- The underlying cause of the exception, which can be retrieved withgetCause().
-
DownloadException
public DownloadException(String message, 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 withgetMessage()cause- The underlying cause of the exception, which can be retrieved withgetCause().enableSuppression- Whether or not suppression is enabled or disabled.writableStackTrace- Whether or not the stack trace should be writable.
-
-