Package org.apache.commons.fileupload
Class FileUploadBase.SizeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.fileupload.FileUploadException
-
- org.apache.commons.fileupload.FileUploadBase.SizeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FileUploadBase.FileSizeLimitExceededException,FileUploadBase.SizeLimitExceededException
- Enclosing class:
- FileUploadBase
protected abstract static class FileUploadBase.SizeException extends FileUploadException
This exception is thrown, if a requests permitted size is exceeded.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private longactualThe actual size of the request.private longpermittedThe maximum permitted size of the request.private static longserialVersionUIDSerial version UID, being used, if serialized.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSizeException(java.lang.String message, long actual, long permitted)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetActualSize()Retrieves the actual size of the request.longgetPermittedSize()Retrieves the permitted size of the request.-
Methods inherited from class org.apache.commons.fileupload.FileUploadException
getCause, printStackTrace, printStackTrace
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial version UID, being used, if serialized.- See Also:
- Constant Field Values
-
actual
private final long actual
The actual size of the request.
-
permitted
private final long permitted
The maximum permitted size of the request.
-
-