Package org.apache.commons.fileupload
Class FileUploadBase.SizeLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.fileupload.FileUploadException
-
- org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FileUploadBase
public static class FileUploadBase.SizeLimitExceededException extends FileUploadException
Thrown to indicate that the request size exceeds the configured maximum.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SizeLimitExceededException()
Constructs aSizeExceededException
with no detail message.SizeLimitExceededException(java.lang.String message)
Constructs aSizeExceededException
with the specified detail message.SizeLimitExceededException(java.lang.String message, long actual, long permitted)
Constructs aSizeExceededException
with the specified detail message, and actual and permitted sizes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getCause, printStackTrace, printStackTrace
-
-
-
-
Constructor Detail
-
SizeLimitExceededException
public SizeLimitExceededException()
Constructs aSizeExceededException
with no detail message.
-
SizeLimitExceededException
public SizeLimitExceededException(java.lang.String message)
Constructs aSizeExceededException
with the specified detail message.- Parameters:
message
- The detail message.
-
SizeLimitExceededException
public SizeLimitExceededException(java.lang.String message, long actual, long permitted)
Constructs aSizeExceededException
with the specified detail message, and actual and permitted sizes.- Parameters:
message
- The detail message.actual
- The actual request size.permitted
- The maximum permitted request size.
-
-