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(int max, int posted)
          Constructs a new exception that contains the limt that was violated, and the size of the post that violated it, both in bytes.
 
Method Summary
 int getMaximum()
          Gets the limit in bytes for HTTP POSTs.
 int 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(int max,
                                        int posted)
Constructs a new exception that contains the limt 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 int getMaximum()
Gets the limit in bytes for HTTP POSTs.


getPosted

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



© Copyright 2005, Stripes Development Team.