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 Summary
ConstructorDescriptionFileUploadSizeException
(String message, long permitted, long actual) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the actual size of the request.long
Gets the limit size of the request.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FileUploadSizeException
Constructs an instance.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method)permitted
- The requests size limit.actual
- The actual values for the request.
-
-
Method Details
-
getActualSize
Gets the actual size of the request.- Returns:
- The actual size of the request.
-
getPermitted
Gets the limit size of the request.- Returns:
- The limit size of the request.
-