org.objectweb.fractal.julia.factory
Class ChainedInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.objectweb.fractal.api.factory.InstantiationException
              extended by org.objectweb.fractal.julia.factory.ChainedInstantiationException
All Implemented Interfaces:
Serializable

public class ChainedInstantiationException
extends InstantiationException

A sub class of the InstantiationException class.

See Also:
Serialized Form

Constructor Summary
ChainedInstantiationException(Throwable exception, Component factory, String message)
          Constructs a new ChainedInstantiationException exception.
 
Method Summary
 Throwable getException()
          Returns the exception that caused in this exception.
 Component getFactory()
          Returns the factory component that cannot be instantiated.
 void printStackTrace()
          Prints the stack backtrace.
 void printStackTrace(PrintStream s)
          Prints this exception and its backtrace to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints this exception and its backtrace to the specified print writer.
 String toString()
          Returns a String representation of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChainedInstantiationException

public ChainedInstantiationException(Throwable exception,
                                     Component factory,
                                     String message)
Constructs a new ChainedInstantiationException exception.

Parameters:
exception - the cause of this exception. May be null.
factory - the factory component that cannot be instantiated. May be null.
message - a detailed error message.
Method Detail

getException

public Throwable getException()
Returns the exception that caused in this exception.

Returns:
the exception that caused this exception. May be null.

getFactory

public Component getFactory()
Returns the factory component that cannot be instantiated.

Returns:
the factory component that cannot be instantiated. May be null.

toString

public String toString()
Returns a String representation of this exception.

Overrides:
toString in class Throwable
Returns:
a String representation of this exception.

printStackTrace

public void printStackTrace()
Prints the stack backtrace.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Prints this exception and its backtrace to the specified print stream.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintStream to use for output.

printStackTrace

public void printStackTrace(PrintWriter s)
Prints this exception and its backtrace to the specified print writer.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintWriter to use for output.