类 ServletRequestBindingException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.util.NestedServletException
- org.springframework.web.bind.ServletRequestBindingException
- 所有已实现的接口:
Serializable
- 直接已知子类:
MissingMatrixVariableException,MissingPathVariableException,MissingRequestCookieException,MissingRequestHeaderException,MissingServletRequestParameterException,UnsatisfiedServletRequestParameterException
public class ServletRequestBindingException extends NestedServletException
Fatal binding exception, thrown when we want to treat binding exceptions as unrecoverable.Extends ServletException for convenient throwing in any Servlet resource (such as a Filter), and NestedServletException for proper root cause handling (as the plain ServletException doesn't expose its root cause at all).
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ServletRequestBindingException(String msg)Constructor for ServletRequestBindingException.ServletRequestBindingException(String msg, Throwable cause)Constructor for ServletRequestBindingException.
方法概要
从类继承的方法 org.springframework.web.util.NestedServletException
getMessage
从类继承的方法 javax.servlet.ServletException
getRootCause
构造器详细资料
ServletRequestBindingException
public ServletRequestBindingException(String msg)
Constructor for ServletRequestBindingException.- 参数:
msg- the detail message
ServletRequestBindingException
public ServletRequestBindingException(String msg, Throwable cause)
Constructor for ServletRequestBindingException.- 参数:
msg- the detail messagecause- the root cause