JADE_SL.onto
Class WrapperException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byJADE_SL.onto.WrapperException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Codec.CodecException, 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: 2003/10/09 13:00:36 $ $Revision: 1.1.1.1 $
Author:
Giovanni Rimassa - Universita` di Parma
See Also:
Serialized Form

Field Summary
private  java.lang.Throwable nested
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
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, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nested

private java.lang.Throwable nested
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()

printStackTrace

public void printStackTrace()

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


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.