Class SizeLimitExceededException

All Implemented Interfaces:
Serializable

public class SizeLimitExceededException extends FileUploadException
Thrown to indicate that the request size exceeds the configured maximum.
See Also:
  • Constructor Details

    • SizeLimitExceededException

      public SizeLimitExceededException(String message, long actual, long permitted)
      Constructs a SizeExceededException 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.
  • Method Details

    • getActualSize

      public long getActualSize()
      Retrieves the actual size of the request.
      Returns:
      The actual size of the request.
      Since:
      1.3
    • getPermittedSize

      public long getPermittedSize()
      Retrieves the permitted size of the request.
      Returns:
      The permitted size of the request.
      Since:
      1.3