Class MissingServletRequestPartException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.multipart.support.MissingServletRequestPartException
- All Implemented Interfaces:
Serializable
Raised when the part of a "multipart/form-data" request identified by its
name cannot be found.
This may be because the request is not a multipart/form-data request,
because the part is not present in the request, or because the web
application is not configured correctly for processing multipart requests,
e.g. no MultipartResolver
.
- Since:
- 3.1
- Author:
- Rossen Stoyanchev
- See Also:
-
Constructor Summary
ConstructorDescriptionMissingServletRequestPartException
(String requestPartName) Constructor for MissingServletRequestPartException. -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the offending part of the multipart request.Methods inherited from class jakarta.servlet.ServletException
getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingServletRequestPartException
Constructor for MissingServletRequestPartException.- Parameters:
requestPartName
- the name of the missing part of the multipart request
-
-
Method Details
-
getRequestPartName
Return the name of the offending part of the multipart request.
-