com.novell.ecb.java.lang
Interface RootCause

All Known Implementing Classes:
CommandException

public interface RootCause

Provides an interface that can be implemented by classes having root cause exceptions. RootCause is typically implemented by throwable classes to report the exception into which a new exception is wrapped.


Method Summary
 java.lang.Throwable getRootCause()
          Returns the stored root cause as a throwable object.
 void printCauseStackTrace()
          Prints this RootCause and its backtrace to the standard error stream.
 void printCauseStackTrace(java.io.PrintStream s)
          Prints this RootCause and its backtrace to the specified print stream.
 void printCauseStackTrace(java.io.PrintWriter w)
          Prints this RootCause and its backtrace to the specified print writer.
 

Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the stored root cause as a throwable object.

Returns:
The root cause; NULL if none exists.

printCauseStackTrace

public void printCauseStackTrace()
Prints this RootCause and its backtrace to the standard error stream.


printCauseStackTrace

public void printCauseStackTrace(java.io.PrintStream s)
Prints this RootCause and its backtrace to the specified print stream.

Parameters:
s - The PrintStream to be used for printing the stack trace of the root exception.

printCauseStackTrace

public void printCauseStackTrace(java.io.PrintWriter w)
Prints this RootCause and its backtrace to the specified print writer.

Parameters:
w - The PrintWriter to be used for printing the stack trace of the root exception.


Copyright © 2001-2003 Novell, Inc. All Rights Reserved.