play.data.parsing
Class ApacheMultipartParser.SizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.fileupload.FileUploadException
play.data.parsing.ApacheMultipartParser.SizeException
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- ApacheMultipartParser
protected abstract static class ApacheMultipartParser.SizeException
- extends org.apache.commons.fileupload.FileUploadException
This exception is thrown, if a requests permitted size is exceeded.
- See Also:
- Serialized Form
|
Method Summary |
long |
getActualSize()
Retrieves the actual size of the request. |
long |
getPermittedSize()
Retrieves the permitted size of the request. |
| Methods inherited from class org.apache.commons.fileupload.FileUploadException |
printStackTrace, printStackTrace |
ApacheMultipartParser.SizeException
protected ApacheMultipartParser.SizeException(String message,
long actual,
long permitted)
- Creates a new instance.
- Parameters:
message - The detail message.actual - The actual number of bytes in the request.permitted - The requests size limit, in bytes.
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.
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly