com.iphrase.onestep.exception
Class LayoutsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.servlet.jsp.JspException
                    |
                    +--com.iphrase.onestep.exception.LayoutsException
All Implemented Interfaces:
java.io.Serializable

public class LayoutsException
extends javax.servlet.jsp.JspException

A generic exception thrown when an error accured during the query processing and results rendering.

See Also:
Serialized Form

Constructor Summary
LayoutsException()
          Constructs a new LayoutsException
LayoutsException(java.lang.String message)
          Constructs a new LayoutsException exception with a given error message.
LayoutsException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new LayoutsException exception when the Layouts need to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message.
LayoutsException(java.lang.Throwable cause)
          Constructs a new LayoutsException exception when the Layouts need to throw an exception and include a message about the "root cause" exception that interfered with its normal operation.
 
Method Summary
 java.lang.Throwable getCause()
          Returns cause exception
static java.lang.String getHtmlStackTrace(java.lang.Exception e)
          Returns a stack trace string for displaying in a HTML page for a given exception.
static java.lang.Throwable getRootCause(java.lang.Exception e)
          Returns the root cause exception for e or null if e doesn't have a cause.
 void printStackTrace()
          Prints this throwable and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this throwable and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this throwable and its backtrace to the specified print writer.
 void setCause(java.lang.Throwable cause)
          Sets the cause of this LayoutsException to the specified value.
 
Methods inherited from class javax.servlet.jsp.JspException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutsException

public LayoutsException()
Constructs a new LayoutsException

LayoutsException

public LayoutsException(java.lang.String message)
Constructs a new LayoutsException exception with a given error message.
Parameters:
message - a detail message.

LayoutsException

public LayoutsException(java.lang.String message,
                        java.lang.Throwable cause)
Constructs a new LayoutsException exception when the Layouts need to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message.
Parameters:
message - a detail message.
cause - a Throwable caused this LayoutsException
See Also:
getCause()

LayoutsException

public LayoutsException(java.lang.Throwable cause)
Constructs a new LayoutsException exception when the Layouts need to throw an exception and include a message about the "root cause" exception that interfered with its normal operation.
Parameters:
cause - a Throwable caused this LayoutsException
See Also:
getCause()
Method Detail

setCause

public void setCause(java.lang.Throwable cause)
Sets the cause of this LayoutsException to the specified value.
Parameters:
cause - a Throwable caused this LayoutsException
See Also:
getCause()

getCause

public java.lang.Throwable getCause()
Returns cause exception

printStackTrace

public void printStackTrace()
Prints this throwable and its backtrace to the standard error stream. This method prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this throwable and its backtrace to the specified print stream.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this throwable and its backtrace to the specified print writer.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - PrintWriter to use for output

getRootCause

public static java.lang.Throwable getRootCause(java.lang.Exception e)
Returns the root cause exception for e or null if e doesn't have a cause.
Parameters:
e - the last exception in the exception chain
Returns:
exception caused the exception chain

getHtmlStackTrace

public static java.lang.String getHtmlStackTrace(java.lang.Exception e)
Returns a stack trace string for displaying in a HTML page for a given exception.

© Copyright 2005, 2006. IBM Corporation. All rights reserved.