APTCONVERT 1.1

fr.pixware.util
Class WrappedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fr.pixware.util.WrappedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RESyntaxException

public abstract class WrappedException
extends java.lang.Exception

Base class for exceptions which are wrappers around other exceptions. This type of exception keep a record of the original exception, that is, the one which was used to actually report a problem.

See Also:
Serialized Form

Constructor Summary
WrappedException()
          Constructs an exception with no original exception and no detail message.
WrappedException(java.lang.Exception e)
          Constucts an exception with an original exception but no detail message.
WrappedException(java.lang.Exception e, java.lang.String message)
          Constucts an exception with both an original exception and an detail message.
WrappedException(java.lang.String message)
          Constructs an exception with a detail message but no original exception.
 
Method Summary
 java.lang.Exception getRootException()
          Returns the original exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, 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 an exception with no original exception and no detail message.


WrappedException

public WrappedException(java.lang.String message)
Constructs an exception with a detail message but no original exception.

Parameters:
message - the detail message

WrappedException

public WrappedException(java.lang.Exception e)
Constucts an exception with an original exception but no detail message.

Parameters:
e - the original exception

WrappedException

public WrappedException(java.lang.Exception e,
                        java.lang.String message)
Constucts an exception with both an original exception and an detail message.

Parameters:
e - the original exception
message - the detail message; if null, the detail message of the original exception if any is used instead (it is this message which is returned by Throwable.getMessage())
Method Detail

getRootException

public java.lang.Exception getRootException()
Returns the original exception.

Returns:
the original exception if any or null otherwise

APTCONVERT 1.1