Class MissingServletRequestPartException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.util.NestedServletException
org.springframework.web.bind.ServletRequestBindingException
org.springframework.web.multipart.support.MissingServletRequestPartException
- All Implemented Interfaces:
- Serializable,- ErrorResponse
Signals the part of a "multipart/form-data" request, identified by name
 could not be found. This may be because the request is not a multipart
 request, or a part with that name is not present, or because the application
 is not configured correctly for processing multipart requests, e.g. there
 is no 
MultipartResolver.- Since:
- 3.1
- Author:
- Rossen Stoyanchev
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMissingServletRequestPartException(String requestPartName) Constructor for MissingServletRequestPartException.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the name of the offending part of the multipart request.Methods inherited from class org.springframework.web.bind.ServletRequestBindingExceptiongetBody, getRawStatusCodeMethods inherited from class org.springframework.web.util.NestedServletExceptiongetMessageMethods inherited from class jakarta.servlet.ServletExceptiongetRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.web.ErrorResponsegetHeaders, getStatus
- 
Constructor Details- 
MissingServletRequestPartExceptionConstructor for MissingServletRequestPartException.- Parameters:
- requestPartName- the name of the missing part of the multipart request
 
 
- 
- 
Method Details- 
getRequestPartNameReturn the name of the offending part of the multipart request.
 
-