oss.net.pstream
Class PortletStreamException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oss.net.pstream.PortletStreamException
All Implemented Interfaces:
java.io.Serializable

public class PortletStreamException
extends java.lang.Exception

Exception class for PortletStream Exceptions. This class is used as a capsule to contain base exceptions (Format exceptions, network exceptions, etc...)

Author:
Matt Gregory
See Also:
Serialized Form

Constructor Summary
PortletStreamException(java.lang.Exception Cause)
          Creates a new PortletStreamException from a parent exception.
PortletStreamException(java.lang.String Message)
          Redefinition of the Exception constructor.
PortletStreamException(java.lang.String Prepend, java.lang.Exception Cause)
          Creates a new exception with the root cause of Cause and prepends the message Prepend to the error message.
 
Method Summary
 java.lang.Exception getRootCause()
          Returns the exception that caused this exception.
 void printStackTrace()
          Overrides parent PrintStackTrace to print the root exception cause.
 void printStackTrace(java.io.PrintStream PS)
          Overrides parent printStackTrace to the supplied PrintStream.
 void printStackTrace(java.io.PrintWriter PW)
          Overrides parent printStackTrace to the supplied PrintWriter
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortletStreamException

public PortletStreamException(java.lang.String Message)
Redefinition of the Exception constructor.

Parameters:
Message - the message of the exception.

PortletStreamException

public PortletStreamException(java.lang.Exception Cause)
Creates a new PortletStreamException from a parent exception.


PortletStreamException

public PortletStreamException(java.lang.String Prepend,
                              java.lang.Exception Cause)
Creates a new exception with the root cause of Cause and prepends the message Prepend to the error message.

Parameters:
Prepend - A message to prepend to the error.
Cause - the root exception/cause.
Method Detail

printStackTrace

public void printStackTrace(java.io.PrintStream PS)
Overrides parent printStackTrace to the supplied PrintStream.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
PS - the print stream to print the trace to.

printStackTrace

public void printStackTrace(java.io.PrintWriter PW)
Overrides parent printStackTrace to the supplied PrintWriter

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
PW - the PrintWriter to print stuff to.

printStackTrace

public void printStackTrace()
Overrides parent PrintStackTrace to print the root exception cause.

Overrides:
printStackTrace in class java.lang.Throwable

getRootCause

public java.lang.Exception getRootCause()
Returns the exception that caused this exception.



Copyright © 2000 Dummy Corp. All Rights Reserved.