Class FileUploadSizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.fileupload2.core.FileUploadException
org.apache.commons.fileupload2.core.FileUploadSizeException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FileUploadByteCountLimitException,- FileUploadFileCountLimitException
Signals that a requests permitted size is exceeded.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionFileUploadSizeException(String message, long permitted, long actual) Constructs an instance.
- 
Method SummaryModifier and TypeMethodDescriptionlongGets the actual size of the request.longGets the limit 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- 
FileUploadSizeExceptionConstructs an instance.- Parameters:
- message- The detail message (which is saved for later retrieval by the- Throwable.getMessage()method)
- permitted- The requests size limit.
- actual- The actual values for the request.
 
 
- 
- 
Method Details- 
getActualSizeGets the actual size of the request.- Returns:
- The actual size of the request.
 
- 
getPermittedGets the limit size of the request.- Returns:
- The limit size of the request.
 
 
-