Class FileUploadByteCountLimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.fileupload2.core.FileUploadException
org.apache.commons.fileupload2.core.FileUploadSizeException
org.apache.commons.fileupload2.core.FileUploadByteCountLimitException
- All Implemented Interfaces:
- Serializable
Signals that a file size exceeds the configured maximum.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionFileUploadByteCountLimitException(String message, long actual, long permitted, String fileName, String fieldName) Constructs an instance with the specified detail message, and actual and permitted sizes.
- 
Method SummaryModifier and TypeMethodDescriptionGets the field name of the item, which caused the exception.Gets the file name of the item, which caused the exception.Methods inherited from class org.apache.commons.fileupload2.core.FileUploadSizeExceptiongetActualSize, getPermittedMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
FileUploadByteCountLimitExceptionpublic FileUploadByteCountLimitException(String message, long actual, long permitted, String fileName, String fieldName) Constructs an instance with the specified detail message, and actual and permitted sizes.- Parameters:
- message- The detail message (which is saved for later retrieval by the- Throwable.getMessage()method)
- actual- The actual request size.
- permitted- The maximum permitted request size.
- fileName- File name of the item, which caused the exception.
- fieldName- Field name of the item, which caused the exception.
 
 
- 
- 
Method Details- 
getFieldNameGets the field name of the item, which caused the exception.- Returns:
- Field name, if known, or null.
 
- 
getFileNameGets the file name of the item, which caused the exception.- Returns:
- File name, if known, or null.
 
 
-