Home » apache-tomcat-6.0.26-src » javax » servlet » jsp » [javadoc | source]
javax.servlet.jsp
public class: JspException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.servlet.jsp.JspException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    SkipPageException, JspTagException

A generic exception known to the JSP engine; uncaught JspExceptions will result in an invocation of the errorpage machinery.
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public 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.
    Parameters:
    msg - a String specifying the text of the exception message
 public JspException(Throwable cause) 
    Constructs a new JSPException with the specified cause. The cause is saved for later retrieval by the java.lang.Throwable.getCause() and #getRootCause() methods.
    Parameters:
    cause - the Throwable exception that interfered with the JSP's normal operation, making the JSP exception necessary
    Also see:
    java.lang.Exception.Exception(Throwable)
 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 java.lang.Throwable.getCause() and #getRootCause() methods.
    Parameters:
    message - a String containing the text of the exception message
    cause - the Throwable exception that interfered with the JSP's normal operation, making this JSP exception necessary
    Also see:
    java.lang.Exception.Exception(String, Throwable)
Method from javax.servlet.jsp.JspException Summary:
getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.servlet.jsp.JspException Detail:
 public Throwable getRootCause() 
Deprecated! As - of JSP 2.1, replaced by java.lang.Throwable.getCause() Returns the exception that caused this JSP exception.