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 Summary
ConstructorsConstructorDescriptionFileUploadByteCountLimitException(String message, long actual, long permitted, String fileName, String fieldName) Constructs an instance with the specified detail message, and actual and permitted sizes. -
Method Summary
Modifier 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 FileUploadSizeException
getActualSize, getPermittedMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FileUploadByteCountLimitException
public 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 theThrowable.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
-
getFieldName
Gets the field name of the item, which caused the exception.- Returns:
- Field name, if known, or null.
-
getFileName
Gets the file name of the item, which caused the exception.- Returns:
- File name, if known, or null.
-