org.springframework.web.multipart

Class MaxUploadSizeExceededException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      long getMaxUploadSize()
      Return the maximum upload size allowed, or -1 if the size limit isn't known.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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
                                              java.lang.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 Detail

      • getMaxUploadSize

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