public class MissingServletRequestPartException extends ServletException
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
.
Constructor and Description |
---|
MissingServletRequestPartException(String requestPartName)
Constructor for MissingServletRequestPartException.
|
Modifier and Type | Method and Description |
---|---|
String |
getRequestPartName()
Return the name of the offending part of the multipart request.
|
getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MissingServletRequestPartException(String requestPartName)
requestPartName
- the name of the missing part of the multipart requestpublic String getRequestPartName()