类 MissingRequestPartException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.bind.RequestBindingException
cn.taketoday.web.bind.MissingRequestValueException
cn.taketoday.web.bind.resolver.MissingRequestPartException
- 所有已实现的接口:
HttpStatusCodeProvider,ErrorResponse,Serializable
public class MissingRequestPartException
extends MissingRequestValueException
implements ErrorResponse
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.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明MissingRequestPartException(String requestPartName) Constructor for MissingRequestPartException. -
方法概要
修饰符和类型方法说明Return the name of the offending part of the multipart request.Return the HTTP status code to use for the response.从类继承的方法 cn.taketoday.web.bind.MissingRequestValueException
isMissingAfterConversion从类继承的方法 cn.taketoday.web.bind.RequestBindingException
getBody, setDetail, setInstance, setTitle, setType从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.web.ErrorResponse
getBody, getHeaders
-
字段详细资料
-
requestPartName
-
-
构造器详细资料
-
MissingRequestPartException
Constructor for MissingRequestPartException.- 参数:
requestPartName- the name of the missing part of the multipart request
-
-
方法详细资料
-
getRequestPartName
Return the name of the offending part of the multipart request. -
getStatusCode
从接口复制的说明:ErrorResponseReturn the HTTP status code to use for the response.- 指定者:
getStatusCode在接口中ErrorResponse- 指定者:
getStatusCode在接口中HttpStatusCodeProvider- 覆盖:
getStatusCode在类中RequestBindingException
-