Class 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 Detail

      • SizeLimitExceededException

        public SizeLimitExceededException​(String sMessage,
                                          long nActual,
                                          long nPermitted)
        Constructs a SizeExceededException with 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.
    • Method Detail

      • 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.