Class ApacheMultipartParser.SizeException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.fileupload.FileUploadException
              extended by
All Implemented Interfaces:
Enclosing class:

protected abstract static class ApacheMultipartParser.SizeException
extends FileUploadException

This exception is thrown, if a requests permitted size is exceeded.

See Also:
Serialized Form

Constructor Summary
protected ApacheMultipartParser.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

Constructor Detail


protected ApacheMultipartParser.SizeException(java.lang.String message,
                                              long actual,
                                              long permitted)
Creates a new instance.

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()
Retrieves the actual size of the request.

The actual size of the request.


public long getPermittedSize()
Retrieves the permitted size of the request.

The permitted size of the request.

Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly