Class FileSizeLimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.vaadin.external.apache.commons.fileupload2.FileUploadException
com.vaadin.external.apache.commons.fileupload2.pub.FileSizeLimitExceededException
- All Implemented Interfaces:
Serializable
Thrown to indicate that A files size exceeds the configured maximum.
- See Also:
-
Constructor Summary
ConstructorDescriptionFileSizeLimitExceededException
(String message, long actual, long permitted) Constructs aSizeExceededException
with the specified detail message, and actual and permitted sizes. -
Method Summary
Modifier and TypeMethodDescriptionlong
Retrieves the actual size of the request.Returns the field name of the item, which caused the exception.Returns the file name of the item, which caused the exception.long
Retrieves the permitted size of the request.void
setFieldName
(String pFieldName) Sets the field name of the item, which caused the exception.void
setFileName
(String pFileName) Sets the file name of the item, which caused the exception.Methods inherited from class com.vaadin.external.apache.commons.fileupload2.FileUploadException
getCause, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, 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
-
getFileName
Returns the file name of the item, which caused the exception.- Returns:
- File name, if known, or null.
-
setFileName
Sets the file name of the item, which caused the exception.- Parameters:
pFileName
- the file name of the item, which caused the exception.
-
getFieldName
Returns the field name of the item, which caused the exception.- Returns:
- Field name, if known, or null.
-
setFieldName
Sets the field name of the item, which caused the exception.- Parameters:
pFieldName
- the field name of the item, which caused the exception.
-
getActualSize
public long getActualSize()Retrieves the actual size of the request.- Returns:
- The actual size of the request.
- Since:
- 1.3
-
getPermittedSize
public long getPermittedSize()Retrieves the permitted size of the request.- Returns:
- The permitted size of the request.
- Since:
- 1.3
-