Package org.apache.commons.fileupload
Class FileUploadException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.fileupload.FileUploadException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FileUploadBase.FileSizeLimitExceededException,FileUploadBase.InvalidContentTypeException,FileUploadBase.IOFileUploadException,FileUploadBase.SizeLimitExceededException,FileUploadBase.UnknownSizeException
public class FileUploadException extends java.lang.ExceptionException for errors encountered while processing the request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileUploadException()Constructs a newFileUploadExceptionwithout message.FileUploadException(java.lang.String msg)Constructs a newFileUploadExceptionwith specified detail message.FileUploadException(java.lang.String msg, java.lang.Throwable cause)Creates a newFileUploadExceptionwith the given detail message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()voidprintStackTrace(java.io.PrintStream stream)Prints this throwable and its backtrace to the specified print stream.voidprintStackTrace(java.io.PrintWriter writer)Prints this throwable and its backtrace to the specified print writer.
-
-
-
Constructor Detail
-
FileUploadException
public FileUploadException()
Constructs a newFileUploadExceptionwithout message.
-
FileUploadException
public FileUploadException(java.lang.String msg)
Constructs a newFileUploadExceptionwith specified detail message.- Parameters:
msg- the error message.
-
FileUploadException
public FileUploadException(java.lang.String msg, java.lang.Throwable cause)Creates a newFileUploadExceptionwith the given detail message and cause.- Parameters:
msg- The exceptions detail message.cause- The exceptions cause.
-
-
Method Detail
-
printStackTrace
public void printStackTrace(java.io.PrintStream stream)
Prints this throwable and its backtrace to the specified print stream.- Overrides:
printStackTracein classjava.lang.Throwable- Parameters:
stream-PrintStreamto use for output
-
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
Prints this throwable and its backtrace to the specified print writer.- Overrides:
printStackTracein classjava.lang.Throwable- Parameters:
writer-PrintWriterto use for output
-
getCause
public java.lang.Throwable getCause()
- Overrides:
getCausein classjava.lang.Throwable
-
-