FileDocCategorySizeDatePackage
JspException.javaAPI DocApache Tomcat 6.0.143275Fri Jul 20 04:20:34 BST 2007javax.servlet.jsp

JspException

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

Fields Summary
Constructors Summary
public JspException()
Construct a 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.

param
msg a String specifying the text of the exception message

        super(msg);
    
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 {@link #getRootCause()} methods.

see
java.lang.Exception.Exception(String, Throwable)
param
message a String containing the text of the exception message
param
cause the Throwable exception that interfered with the JSP's normal operation, making this JSP exception necessary

        super(message, cause);
    
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 {@link #getRootCause()} methods.

see
java.lang.Exception.Exception(Throwable)
param
cause the Throwable exception that interfered with the JSP's normal operation, making the JSP exception necessary

        super(cause);
    
Methods Summary
public java.lang.ThrowablegetRootCause()

deprecated
As of JSP 2.1, replaced by java.lang.Throwable.getCause() Returns the exception that caused this JSP exception.
return
the Throwable that caused this JSP exception

        return getCause();