|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.fileupload.FileUploadException
org.apache.commons.fileupload.FileUploadBase.SizeException
protected abstract static class FileUploadBase.SizeException
This exception is thrown, if a requests permitted size is exceeded.
Field Summary | |
---|---|
private long |
actual
The actual size of the request. |
private long |
permitted
The maximum permitted size of the request. |
Constructor Summary | |
---|---|
protected |
FileUploadBase.SizeException(java.lang.String message,
long actual,
long permitted)
Creates a new instance. |
Method Summary | |
---|---|
long |
getActualSize()
Retrieves the actual size of the request. |
long |
getPermittedSize()
Retrieves the permitted size of the request. |
Methods inherited from class org.apache.commons.fileupload.FileUploadException |
---|
getCause, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final long actual
private final long permitted
Constructor Detail |
---|
protected FileUploadBase.SizeException(java.lang.String message, long actual, long permitted)
message
- The detail message.actual
- The actual number of bytes in the request.permitted
- The requests size limit, in bytes.Method Detail |
---|
public long getActualSize()
public long getPermittedSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |