Class FileUploadSizeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FileUploadByteCountLimitException, FileUploadFileCountLimitException

public class FileUploadSizeException extends FileUploadException
Signals that a requests permitted size is exceeded.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial version UID, being used, if serialized.
      See Also:
    • actual

      private final long actual
      The actual size of the request.
    • permitted

      private final long permitted
      The maximum permitted size of the request.
  • Constructor Details

    • FileUploadSizeException

      public FileUploadSizeException(String message, long permitted, long actual)
      Constructs an instance.
      Parameters:
      message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method)
      permitted - The requests size limit.
      actual - The actual values for the request.
  • Method Details

    • getActualSize

      public long getActualSize()
      Gets the actual size of the request.
      Returns:
      The actual size of the request.
    • getPermitted

      public long getPermitted()
      Gets the limit size of the request.
      Returns:
      The limit size of the request.