ibis.gmi
Class NestedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ibis.gmi.NestedException
All Implemented Interfaces:
Serializable

public class NestedException
extends Exception

This is a container class for a list of exceptions.

See Also:
Serialized Form

Constructor Summary
NestedException()
          Constructs a NestedException with no specified detail message.
NestedException(String s)
          Constructs a NestedException with the specified detail message.
NestedException(Throwable t)
          Constructs a NestedException with no specified detail message, and adds the specified Throwable to the list of exceptions.
 
Method Summary
 void add(Throwable t)
          Adds the specified Throwable to the list of exceptions.
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedException

public NestedException(String s)
Constructs a NestedException with the specified detail message.

Parameters:
s - the detail message

NestedException

public NestedException()
Constructs a NestedException with no specified detail message.


NestedException

public NestedException(Throwable t)
Constructs a NestedException with no specified detail message, and adds the specified Throwable to the list of exceptions.

Parameters:
t - the exception.
Method Detail

add

public void add(Throwable t)
Adds the specified Throwable to the list of exceptions.

Parameters:
t - the exception.

toString

public String toString()
Overrides:
toString in class Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable


The Ibis project