Class SizeLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.helger.web.fileupload.exception.FileUploadException
-
- com.helger.web.fileupload.exception.SizeLimitExceededException
-
- All Implemented Interfaces:
Serializable
public class SizeLimitExceededException extends FileUploadException
Thrown to indicate that the request size exceeds the configured maximum.- Author:
- commons-fileupload
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SizeLimitExceededException(String sMessage, long nActual, long nPermitted)Constructs aSizeExceededExceptionwith the specified detail message, and actual and permitted sizes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetActualSize()Retrieves the actual size of the request.longgetPermittedSize()Retrieves the permitted size of the request.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SizeLimitExceededException
public SizeLimitExceededException(String sMessage, long nActual, long nPermitted)
Constructs aSizeExceededExceptionwith the specified detail message, and actual and permitted sizes.- Parameters:
sMessage- The detail message.nActual- The actual request size.nPermitted- The maximum permitted request size.
-
-