Class MaxUploadSizeExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.multipart.MultipartException
org.springframework.web.multipart.MaxUploadSizeExceededException
- All Implemented Interfaces:
- Serializable
MultipartException subclass thrown when an upload exceeds the
 maximum upload size allowed.
- Since:
- 1.0.1
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMaxUploadSizeExceededException(long maxUploadSize) Constructor for MaxUploadSizeExceededException.MaxUploadSizeExceededException(long maxUploadSize, Throwable ex) Constructor for MaxUploadSizeExceededException.
- 
Method SummaryModifier and TypeMethodDescriptionlongReturn the maximum upload size allowed, or -1 if the size limit isn't known.Methods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMessage, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
MaxUploadSizeExceededExceptionpublic MaxUploadSizeExceededException(long maxUploadSize) Constructor for MaxUploadSizeExceededException.- Parameters:
- maxUploadSize- the maximum upload size allowed, or -1 if the size limit isn't known
 
- 
MaxUploadSizeExceededExceptionConstructor 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- 
getMaxUploadSizepublic long getMaxUploadSize()Return the maximum upload size allowed, or -1 if the size limit isn't known.
 
-