Package org.apache.commons.fileupload
Class FileUploadException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.fileupload.FileUploadException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FileUploadBase.FileSizeLimitExceededException
,FileUploadBase.InvalidContentTypeException
,FileUploadBase.IOFileUploadException
,FileUploadBase.SizeLimitExceededException
,FileUploadBase.UnknownSizeException
public class FileUploadException extends Exception
Exception for errors encountered while processing the request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileUploadException()
Constructs a newFileUploadException
without message.FileUploadException(String msg)
Constructs a newFileUploadException
with specified detail message.FileUploadException(String msg, Throwable cause)
Creates a newFileUploadException
with the given detail message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
void
printStackTrace(PrintStream stream)
Prints this throwable and its backtrace to the specified print stream.void
printStackTrace(PrintWriter writer)
Prints this throwable and its backtrace to the specified print writer.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FileUploadException
public FileUploadException()
Constructs a newFileUploadException
without message.
-
FileUploadException
public FileUploadException(String msg)
Constructs a newFileUploadException
with specified detail message.- Parameters:
msg
- the error message.
-
-
Method Detail
-
printStackTrace
public void printStackTrace(PrintStream stream)
Prints this throwable and its backtrace to the specified print stream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
stream
-PrintStream
to use for output
-
printStackTrace
public void printStackTrace(PrintWriter writer)
Prints this throwable and its backtrace to the specified print writer.- Overrides:
printStackTrace
in classThrowable
- Parameters:
writer
-PrintWriter
to use for output
-
-