Package org.apache.commons.fileupload
Class FileUploadBase.FileSizeLimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.fileupload.FileUploadException
org.apache.commons.fileupload.FileUploadBase.SizeException
org.apache.commons.fileupload.FileUploadBase.FileSizeLimitExceededException
- All Implemented Interfaces:
Serializable
- Enclosing class:
FileUploadBase
public static class FileUploadBase.FileSizeLimitExceededException
extends FileUploadBase.SizeException
Thrown to indicate that A files size exceeds the configured maximum.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileSizeLimitExceededException
(String message, long actual, long permitted) Constructs aSizeExceededException
with the specified detail message, and actual and permitted sizes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the field name of the item, which caused the exception.Returns the file name of the item, which caused the exception.void
setFieldName
(String fieldName) Sets the field name of the item, which caused the exception.void
setFileName
(String fileName) Sets the file name of the item, which caused the exception.Methods inherited from class org.apache.commons.fileupload.FileUploadBase.SizeException
getActualSize, getPermittedSize
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FileSizeLimitExceededException
Constructs aSizeExceededException
with the specified detail message, and actual and permitted sizes.- Parameters:
message
- The detail message.actual
- The actual request size.permitted
- The maximum permitted request size.
-
-
Method Details
-
getFieldName
Returns the field name of the item, which caused the exception.- Returns:
- Field name, if known, or null.
-
getFileName
Returns the file name of the item, which caused the exception.- Returns:
- File name, if known, or null.
-
setFieldName
Sets the field name of the item, which caused the exception.- Parameters:
fieldName
- the field name of the item, which caused the exception.
-
setFileName
Sets the file name of the item, which caused the exception.- Parameters:
fileName
- the file name of the item, which caused the exception.
-