tyrex.util
Class WrappedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bytyrex.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

Field Summary
 
Fields inherited from class java.lang.Exception
 
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, 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

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()

printStackTrace

public void printStackTrace(java.io.PrintStream print)

printStackTrace

public void printStackTrace(java.io.PrintWriter print)


Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.