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:
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 anull
message and cause.DownloadException(java.lang.String message)
Initializes a new exception instance that will have a specified message and anull
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.
-
-
-
Constructor Detail
-
DownloadException
public DownloadException()
Initializes a new exception instance that will have anull
message and cause.
-
DownloadException
public DownloadException(java.lang.String message)
Initializes a new exception instance that will have a specified message and anull
cause.- Parameters:
message
- The detail message that can be retrieved withgetMessage()
-
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 withgetMessage()
cause
- The underlying cause of the exception, which can be retrieved withgetCause()
.
-
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 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.
-
-