Package org.apache.commons.fileupload
Class FileUploadBase.FileSizeLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.fileupload.FileUploadException
-
- org.apache.commons.fileupload.FileUploadBase.SizeException
-
- org.apache.commons.fileupload.FileUploadBase.FileSizeLimitExceededException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FileUploadBase
public static class FileUploadBase.FileSizeLimitExceededException extends FileUploadBase.SizeException
Thrown to indicate that A files size exceeds the configured maximum.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringfieldNameField name of the item, which caused the exception.private java.lang.StringfileNameFile name of the item, which caused the exception.private static longserialVersionUIDThe exceptions UID, for serializing an instance.
-
Constructor Summary
Constructors Constructor Description FileSizeLimitExceededException(java.lang.String message, long actual, long permitted)Constructs aSizeExceededExceptionwith the specified detail message, and actual and permitted sizes.
-
Method Summary
All 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.commons.fileupload.FileUploadBase.SizeException
getActualSize, getPermittedSize
-
Methods inherited from class org.apache.commons.fileupload.FileUploadException
getCause, printStackTrace, printStackTrace
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The exceptions UID, for serializing an instance.- See Also:
- Constant Field Values
-
fileName
private java.lang.String fileName
File name of the item, which caused the exception.
-
fieldName
private java.lang.String fieldName
Field name of the item, which caused the exception.
-
-
Constructor Detail
-
FileSizeLimitExceededException
public 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
-
getFileName
public java.lang.String getFileName()
Returns the file name of the item, which caused the exception.- Returns:
- File name, if known, or null.
-
setFileName
public 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.
-
getFieldName
public java.lang.String getFieldName()
Returns the field name of the item, which caused the exception.- Returns:
- Field name, if known, or null.
-
setFieldName
public 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.
-
-