net.sourceforge.stripes.controller
Class FileUploadLimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
net.sourceforge.stripes.exception.StripesServletException
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 java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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 limitposted
- the size of the post
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.