tyrex.util
Class WrappedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--tyrex.util.WrappedException
All Implemented Interfaces:
java.io.Serializable

public class WrappedException
extends java.lang.Exception

Reports an exception with an underlying exception.

Version:
$Revision: 1.2 $ $Date: 2000/09/08 23:06:38 $
Author:
Assaf Arkin
See Also:
Serialized Form

Constructor Summary
WrappedException()
          Constructs a new exception.
WrappedException(java.lang.String message)
          Constructs a new exception with the specified message.
WrappedException(java.lang.String message, java.lang.Throwable except)
          Constructs a new exception with the specified message and trigger exception.
WrappedException(java.lang.Throwable except)
          Constructs a new exception with the specified trigger exception.
 
Method Summary
 java.lang.Throwable getException()
          Return the exception that triggered this exception.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream print)
           
 void printStackTrace(java.io.PrintWriter print)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappedException

public WrappedException()
Constructs a new exception.

WrappedException

public WrappedException(java.lang.String message)
Constructs a new exception with the specified message.
Parameters:
message - The exception message

WrappedException

public WrappedException(java.lang.String message,
                        java.lang.Throwable except)
Constructs a new exception with the specified message and trigger exception.
Parameters:
message - The exception message
except - The exception that triggered this exception

WrappedException

public WrappedException(java.lang.Throwable except)
Constructs a new exception with the specified trigger exception.
Parameters:
except - The exception that triggered this exception
Method Detail

getException

public final java.lang.Throwable getException()
Return the exception that triggered this exception. May be null.

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream print)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter print)
Overrides:
printStackTrace in class java.lang.Throwable


Intalio Inc. (C) 1999-2001. All rights reserved.