Class MaxUploadSizeExceededException

All Implemented Interfaces:
Serializable

public class MaxUploadSizeExceededException extends MultipartException
MultipartException subclass thrown when an upload exceeds the maximum upload size allowed.
Since:
1.0.1
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • MaxUploadSizeExceededException

      public MaxUploadSizeExceededException(long maxUploadSize)
      Constructor for MaxUploadSizeExceededException.
      Parameters:
      maxUploadSize - the maximum upload size allowed, or -1 if the size limit isn't known
    • MaxUploadSizeExceededException

      public MaxUploadSizeExceededException(long maxUploadSize, @Nullable Throwable ex)
      Constructor for MaxUploadSizeExceededException.
      Parameters:
      maxUploadSize - the maximum upload size allowed, or -1 if the size limit isn't known
      ex - root cause from multipart parsing API in use
  • Method Details

    • getMaxUploadSize

      public long getMaxUploadSize()
      Return the maximum upload size allowed, or -1 if the size limit isn't known.