jade.util
Class WrapperException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--jade.util.WrapperException
Direct Known Subclasses:
Codec.CodecException, IMTPException, OntologyException

public abstract class WrapperException
extends java.lang.Exception

This class acts as a base class for all the exceptions that wrap another (nested) exception. The typical usage for descendents of this class is to throw them within the catch block for their nested exception.

Version:
$Date: 2001/12/17 18:00:32 $ $Revision: 1.4 $
Author:
Giovanni Rimassa - Universita` di Parma
See Also:
Serialized Form

Constructor Summary
protected WrapperException(java.lang.String m)
           
protected WrapperException(java.lang.String m, java.lang.Throwable t)
           
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.Throwable getNested()
          Reads the exception wrapped by this object.
 void printStackTrace()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperException

protected WrapperException(java.lang.String m,
                           java.lang.Throwable t)

WrapperException

protected WrapperException(java.lang.String m)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

printStackTrace

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

getNested

public java.lang.Throwable getNested()
Reads the exception wrapped by this object.
Returns:
the Throwable object that is the exception that was originally thrown