org.apache.commons.fileupload
Class FileUploadBase.SizeLimitExceededException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.commons.fileupload.FileUploadException
              extended byorg.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FileUploadBase

public static class FileUploadBase.SizeLimitExceededException
extends FileUploadException

Thrown to indicate that the request size exceeds the configured maximum.

See Also:
Serialized Form

Field Summary
private  long actual
          The actual size of the request.
private  long permitted
          The maximum permitted size of the request.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
FileUploadBase.SizeLimitExceededException()
          Constructs a SizeExceededException with no detail message.
FileUploadBase.SizeLimitExceededException(java.lang.String message)
          Constructs a SizeExceededException with the specified detail message.
FileUploadBase.SizeLimitExceededException(java.lang.String message, long actual, long permitted)
          Constructs a SizeExceededException with the specified detail message, and actual and permitted sizes.
 
Method Summary
 long getActualSize()
          Retrieves the actual size of the request.
 long getPermittedSize()
          Retrieves the permitted size of the request.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

actual

private long actual
The actual size of the request.


permitted

private long permitted
The maximum permitted size of the request.

Constructor Detail

FileUploadBase.SizeLimitExceededException

public FileUploadBase.SizeLimitExceededException()
Constructs a SizeExceededException with no detail message.


FileUploadBase.SizeLimitExceededException

public FileUploadBase.SizeLimitExceededException(java.lang.String message)
Constructs a SizeExceededException with the specified detail message.

Parameters:
message - The detail message.

FileUploadBase.SizeLimitExceededException

public FileUploadBase.SizeLimitExceededException(java.lang.String message,
                                                 long actual,
                                                 long permitted)
Constructs a SizeExceededException with 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

getActualSize

public long getActualSize()
Retrieves the actual size of the request.

Returns:
The actual size of the request.

getPermittedSize

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

Returns:
The permitted size of the request.