类 UnsatisfiedServletRequestParameterException
- 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.UnsatisfiedServletRequestParameterException
- 所有已实现的接口:
Serializable
public class UnsatisfiedServletRequestParameterException extends ServletRequestBindingException
ServletRequestBindingException
subclass that indicates an unsatisfied parameter condition, as typically expressed using an@RequestMapping
annotation at the@Controller
type level.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller
- 另请参阅:
RequestMapping.params()
, 序列化表格
构造器概要
构造器 构造器 说明 UnsatisfiedServletRequestParameterException(String[] paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.UnsatisfiedServletRequestParameterException(List<String[]> paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,String[]>
getActualParams()
Return the actual parameter Map associated with the ServletRequest.String
getMessage()
Return the detail message, including the message from the nested exception if there is one.List<String[]>
getParamConditionGroups()
Return all parameter condition groups that have been violated.String[]
getParamConditions()
Return the parameter conditions that have been violated or the first group in case of multiple groups.从类继承的方法 javax.servlet.ServletException
getRootCause
构造器详细资料
UnsatisfiedServletRequestParameterException
public UnsatisfiedServletRequestParameterException(String[] paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.- 参数:
paramConditions
- the parameter conditions that have been violatedactualParams
- the actual parameter Map associated with the ServletRequest
UnsatisfiedServletRequestParameterException
public UnsatisfiedServletRequestParameterException(List<String[]> paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.- 参数:
paramConditions
- all sets of parameter conditions that have been violatedactualParams
- the actual parameter Map associated with the ServletRequest- 从以下版本开始:
- 4.2
方法详细资料
getMessage
public String getMessage()
从类复制的说明:NestedServletException
Return the detail message, including the message from the nested exception if there is one.- 覆盖:
getMessage
在类中NestedServletException
getParamConditions
public final String[] getParamConditions()
Return the parameter conditions that have been violated or the first group in case of multiple groups.
getParamConditionGroups
public final List<String[]> getParamConditionGroups()
Return all parameter condition groups that have been violated.- 从以下版本开始:
- 4.2
- 另请参阅:
RequestMapping.params()
getActualParams
public final Map<String,String[]> getActualParams()
Return the actual parameter Map associated with the ServletRequest.