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(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 java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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 limitposted - the size of the post
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.