JspException Class

com.bea.p13n.servlets.jsp
JspException Class

public class JspException

    extends JspException

An exception class that can print the embedded exception as well. This class extends javax.servlet.jsp.JspException and provides an extra constructor that takes embedded exception.


Hierarchy
Object
  Throwable
    Exception
      JspException
        JspException
All Implemented Interfaces

Serializable

Constructor Summary

JspException()

The default constructor.
JspException(String message, Throwable nestedException)

Constructs JspException by associating with the given nested exception and a string message.
JspException(String message)

Constructs JspException by associating with the given message.
JspException(Throwable nestedException)

Constructs JspException by associating with the given nested exception.
 

Method Summary

public void
printStackTrace(PrintStream out)
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.
public void
printStackTrace(PrintWriter out)
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.
public void
printStackTrace()
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.
 
Methods from  javax.servlet.jsp.JspException
getRootCause
 
Methods from  java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

JspException

public JspException()
The default constructor.

JspException

public JspException(String message, 
                    Throwable nestedException)
Constructs JspException by associating with the given nested exception and a string message.

JspException

public JspException(String message)
Constructs JspException by associating with the given message.

JspException

public JspException(Throwable nestedException)
Constructs JspException by associating with the given nested exception.
 

Method Detail

printStackTrace(PrintStream) Method

public void printStackTrace(PrintStream out)
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.

Overrides
Throwable.printStackTrace(PrintStream)

Parameters

out
PrintStream used to output the stack trace

printStackTrace(PrintWriter) Method

public void printStackTrace(PrintWriter out)
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.

Overrides
Throwable.printStackTrace(PrintWriter)

Parameters

out
PrintWriter used to output the stack trace

printStackTrace() Method

public void printStackTrace()
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.

Overrides
Throwable.printStackTrace()