类 MissingPathVariableException
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.MissingPathVariableException
- 所有已实现的接口:
HttpStatusCodeProvider,ErrorResponse,Serializable
RequestBindingException subclass that indicates that a path
variable expected in the method parameters of an @RequestMapping
method is not present among the URI variables extracted from the URL.
Typically that means the URI template does not match the path variable name
declared on the method parameter.- 从以下版本开始:
- 3.0
- 作者:
- TODAY 2021/4/30 22:06
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private final cn.taketoday.core.MethodParameterprivate static final longprivate final String -
构造器概要
构造器构造器说明MissingPathVariableException(String variableName, cn.taketoday.core.MethodParameter parameter) Constructor for MissingPathVariableException.MissingPathVariableException(String variableName, cn.taketoday.core.MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull. -
方法概要
修饰符和类型方法说明final cn.taketoday.core.MethodParameterReturn the method parameter bound to the path variable.Return the HTTP status code to use for the response.final StringReturn the expected name of the path variable.从类继承的方法 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, 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
getHeaders
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
variableName
-
parameter
private final cn.taketoday.core.MethodParameter parameter
-
-
构造器详细资料
-
MissingPathVariableException
public MissingPathVariableException(String variableName, cn.taketoday.core.MethodParameter parameter) Constructor for MissingPathVariableException.- 参数:
variableName- the name of the missing path variableparameter- the method parameter
-
MissingPathVariableException
public MissingPathVariableException(String variableName, cn.taketoday.core.MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull.- 参数:
variableName- the name of the missing path variableparameter- the method parametermissingAfterConversion- whether the value became null after conversion
-
-
方法详细资料
-
getMessage
- 覆盖:
getMessage在类中Throwable
-
getVariableName
Return the expected name of the path variable. -
getParameter
public final cn.taketoday.core.MethodParameter getParameter()Return the method parameter bound to the path variable. -
getStatusCode
从接口复制的说明:ErrorResponseReturn the HTTP status code to use for the response.- 指定者:
getStatusCode在接口中ErrorResponse- 指定者:
getStatusCode在接口中HttpStatusCodeProvider- 覆盖:
getStatusCode在类中RequestBindingException
-