类 MissingMatrixVariableException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.util.NestedServletException
- org.springframework.web.bind.ServletRequestBindingException
- org.springframework.web.bind.MissingMatrixVariableException
- 所有已实现的接口:
Serializable
public class MissingMatrixVariableException extends ServletRequestBindingException
ServletRequestBindingExceptionsubclass that indicates that a matrix variable expected in the method parameters of an@RequestMappingmethod is not present among the matrix variables extracted from the URL.- 从以下版本开始:
- 5.1
- 作者:
- Juergen Hoeller
- 另请参阅:
MissingPathVariableException, 序列化表格
构造器概要
构造器 构造器 说明 MissingMatrixVariableException(String variableName, MethodParameter parameter)Constructor for MissingMatrixVariableException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetMessage()Return the detail message, including the message from the nested exception if there is one.MethodParametergetParameter()Return the method parameter bound to the matrix variable.StringgetVariableName()Return the expected name of the matrix variable.从类继承的方法 javax.servlet.ServletException
getRootCause
构造器详细资料
MissingMatrixVariableException
public MissingMatrixVariableException(String variableName, MethodParameter parameter)
Constructor for MissingMatrixVariableException.- 参数:
variableName- the name of the missing matrix variableparameter- the method parameter
方法详细资料
getMessage
public String getMessage()
从类复制的说明:NestedServletExceptionReturn the detail message, including the message from the nested exception if there is one.- 覆盖:
getMessage在类中NestedServletException
getVariableName
public final String getVariableName()
Return the expected name of the matrix variable.
getParameter
public final MethodParameter getParameter()
Return the method parameter bound to the matrix variable.