Class SizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.tomcat.util.http.fileupload.FileUploadException
org.apache.tomcat.util.http.fileupload.impl.SizeException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FileSizeLimitExceededException,- SizeLimitExceededException
This exception is thrown, if a requests permitted size
 is exceeded.
- See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSizeException(String message, long actual, long permitted) Creates a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionlongRetrieves the actual size of the request.longRetrieves the permitted size of the request.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
SizeExceptionCreates a new instance.- Parameters:
- message- The detail message.
- actual- The actual number of bytes in the request.
- permitted- The requests size limit, in bytes.
 
 
- 
- 
Method Details- 
getActualSizepublic long getActualSize()Retrieves the actual size of the request.- Returns:
- The actual size of the request.
- Since:
- 1.3
 
- 
getPermittedSizepublic long getPermittedSize()Retrieves the permitted size of the request.- Returns:
- The permitted size of the request.
- Since:
- 1.3
 
 
-