java.io.Serializable
FileUploadBase.InvalidContentTypeException
, FileUploadBase.SizeLimitExceededException
, FileUploadBase.UnknownSizeException
public class FileUploadException
extends java.lang.Exception
Modifier and Type | Field | Description |
---|---|---|
private java.lang.Throwable |
cause |
The exceptions cause.
|
Constructor | Description |
---|---|
FileUploadException() |
Constructs a new
FileUploadException without message. |
FileUploadException(java.lang.String msg) |
Constructs a new
FileUploadException with specified detail
message. |
FileUploadException(java.lang.String msg,
java.lang.Throwable cause) |
Creates a new
FileUploadException with the given
detail message and cause. |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Throwable |
getCause() |
|
void |
printStackTrace(java.io.PrintStream stream) |
Prints this throwable and its backtrace to the specified print stream.
|
void |
printStackTrace(java.io.PrintWriter writer) |
Prints this throwable and its backtrace to the specified
print writer.
|
private final java.lang.Throwable cause
public FileUploadException()
FileUploadException
without message.public FileUploadException(java.lang.String msg)
FileUploadException
with specified detail
message.msg
- the error message.public FileUploadException(java.lang.String msg, java.lang.Throwable cause)
FileUploadException
with the given
detail message and cause.msg
- The exceptions detail message.cause
- The exceptions cause.public void printStackTrace(java.io.PrintStream stream)
printStackTrace
in class java.lang.Throwable
stream
- PrintStream
to use for outputpublic void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
writer
- PrintWriter
to use for outputpublic java.lang.Throwable getCause()
getCause
in class java.lang.Throwable