Class FileSizeLimitExceededException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.io.IOException
- 
- org.apache.tomcat.util.http.fileupload.FileUploadException
- 
- org.apache.tomcat.util.http.fileupload.impl.SizeException
- 
- org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class FileSizeLimitExceededException extends SizeException Thrown to indicate that A files size exceeds the configured maximum.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description FileSizeLimitExceededException(java.lang.String message, long actual, long permitted)Constructs aSizeExceededExceptionwith the specified detail message, and actual and permitted sizes.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFieldName()Returns the field name of the item, which caused the exception.java.lang.StringgetFileName()Returns the file name of the item, which caused the exception.voidsetFieldName(java.lang.String pFieldName)Sets the field name of the item, which caused the exception.voidsetFileName(java.lang.String pFileName)Sets the file name of the item, which caused the exception.- 
Methods inherited from class org.apache.tomcat.util.http.fileupload.impl.SizeExceptiongetActualSize, getPermittedSize
 
- 
 
- 
- 
- 
Constructor Detail- 
FileSizeLimitExceededExceptionpublic FileSizeLimitExceededException(java.lang.String message, long actual, long permitted)Constructs aSizeExceededExceptionwith the specified detail message, and actual and permitted sizes.- Parameters:
- message- The detail message.
- actual- The actual request size.
- permitted- The maximum permitted request size.
 
 
- 
 - 
Method Detail- 
getFileNamepublic java.lang.String getFileName() Returns the file name of the item, which caused the exception.- Returns:
- File name, if known, or null.
 
 - 
setFileNamepublic void setFileName(java.lang.String pFileName) Sets the file name of the item, which caused the exception.- Parameters:
- pFileName- the file name of the item, which caused the exception.
 
 - 
getFieldNamepublic java.lang.String getFieldName() Returns the field name of the item, which caused the exception.- Returns:
- Field name, if known, or null.
 
 - 
setFieldNamepublic void setFieldName(java.lang.String pFieldName) Sets the field name of the item, which caused the exception.- Parameters:
- pFieldName- the field name of the item, which caused the exception.
 
 
- 
 
-