Class FileUploadSizeException

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

Signals that a requests permitted size is exceeded.
See Also:
  • 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.