javax.servlet.jsp
类 JspException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.servlet.jsp.JspException
所有已实现的接口:
Serializable
直接已知子类:
JspTagException, SkipPageException

public class JspException
extends Exception

A generic exception known to the JSP engine; uncaught JspExceptions will result in an invocation of the errorpage machinery.

另请参见:
序列化表格

构造方法摘要
JspException()
          Construct a JspException.
JspException(String msg)
          Constructs a new JSP exception with the specified message.
JspException(String message, Throwable cause)
          Constructs a new JspException with the specified detail message and cause.
JspException(Throwable cause)
          Constructs a new JspException with the specified cause.
 
方法摘要
 Throwable getRootCause()
          已过时。 As of JSP 2.1, replaced by Throwable.getCause()
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

JspException

public JspException()
Construct a JspException.


JspException

public JspException(String msg)
Constructs a new JSP exception with the specified message. The message can be written to the server log and/or displayed for the user.

参数:
msg - a String specifying the text of the exception message

JspException

public JspException(String message,
                    Throwable cause)
Constructs a new JspException with the specified detail message and cause. The cause is saved for later retrieval by the Throwable.getCause() and getRootCause() methods.

另请参见:
Exception.Exception(String, Throwable)

JspException

public JspException(Throwable cause)
Constructs a new JspException with the specified cause. The cause is saved for later retrieval by the Throwable.getCause() and getRootCause() methods.

另请参见:
Exception.Exception(Throwable)
方法详细信息

getRootCause

public Throwable getRootCause()
已过时。 As of JSP 2.1, replaced by Throwable.getCause()

Returns the exception that caused this JSP exception.

返回:
the Throwable that caused this JSP exception


Copyright © 2013. All Rights Reserved.