Class SizeLimitExceededException
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.SizeLimitExceededException
- All Implemented Interfaces:
Serializable
Thrown to indicate that the request size exceeds the configured maximum.
- See Also:
-
Constructor Summary
ConstructorDescriptionSizeLimitExceededException
(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.long
Retrieves the permitted size of the request.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
-
SizeLimitExceededException
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
-
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
-