类 MissingServletRequestParameterException
- 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.MissingServletRequestParameterException
- 所有已实现的接口:
Serializable
public class MissingServletRequestParameterException extends ServletRequestBindingException
ServletRequestBindingException
subclass that indicates a missing parameter.- 从以下版本开始:
- 2.0.2
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 MissingServletRequestParameterException(String parameterName, String parameterType)
Constructor for MissingServletRequestParameterException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getMessage()
Return the detail message, including the message from the nested exception if there is one.String
getParameterName()
Return the name of the offending parameter.String
getParameterType()
Return the expected type of the offending parameter.从类继承的方法 javax.servlet.ServletException
getRootCause
构造器详细资料
MissingServletRequestParameterException
public MissingServletRequestParameterException(String parameterName, String parameterType)
Constructor for MissingServletRequestParameterException.- 参数:
parameterName
- the name of the missing parameterparameterType
- the expected type of the missing parameter
方法详细资料
getMessage
public String getMessage()
从类复制的说明:NestedServletException
Return the detail message, including the message from the nested exception if there is one.- 覆盖:
getMessage
在类中NestedServletException
getParameterName
public final String getParameterName()
Return the name of the offending parameter.
getParameterType
public final String getParameterType()
Return the expected type of the offending parameter.