net.sourceforge.stripes.controller
Class FileUploadLimitExceededException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.servlet.ServletException
              extended by net.sourceforge.stripes.exception.StripesServletException
                  extended by net.sourceforge.stripes.controller.FileUploadLimitExceededException
All Implemented Interfaces:
Serializable

public class FileUploadLimitExceededException
extends StripesServletException

Exception that is thrown when the post size of a multipart/form post used for file upload exceeds the configured maximum size.

Author:
Tim Fennell
See Also:
Serialized Form

Constructor Summary
FileUploadLimitExceededException(long max, long posted)
          Constructs a new exception that contains the limit that was violated, and the size of the post that violated it, both in bytes.
 
Method Summary
 long getMaximum()
          Gets the limit in bytes for HTTP POSTs.
 long getPosted()
          The size in bytes of the HTTP POST.
 
Methods inherited from class javax.servlet.ServletException
getRootCause
 
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
 

Constructor Detail

FileUploadLimitExceededException

public FileUploadLimitExceededException(long max,
                                        long posted)
Constructs a new exception that contains the limit that was violated, and the size of the post that violated it, both in bytes.

Parameters:
max - the current post size limit
posted - the size of the post
Method Detail

getMaximum

public long getMaximum()
Gets the limit in bytes for HTTP POSTs.


getPosted

public long getPosted()
The size in bytes of the HTTP POST.



? Copyright 2005-2006, Stripes Development Team.