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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe actual size of the request.private final longThe maximum permitted size of the request.private static final longSerial version UID, being used, if serialized. -
Constructor Summary
ConstructorsConstructorDescriptionFileUploadSizeException(String message, long permitted, long actual) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the actual size of the request.longGets 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial version UID, being used, if serialized.- See Also:
-
actual
private final long actualThe actual size of the request. -
permitted
private final long permittedThe maximum permitted size of the request.
-
-
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
public long getActualSize()Gets the actual size of the request.- Returns:
- The actual size of the request.
-
getPermitted
public long getPermitted()Gets the limit size of the request.- Returns:
- The limit size of the request.
-