org.objectweb.fractal.julia.control.lifecycle
Class ChainedIllegalLifeCycleException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.fractal.api.control.IllegalLifeCycleException
              extended byorg.objectweb.fractal.julia.control.lifecycle.ChainedIllegalLifeCycleException
All Implemented Interfaces:
Serializable

public class ChainedIllegalLifeCycleException
extends IllegalLifeCycleException

A sub class of the IllegalLifeCycleException class.

See Also:
Serialized Form

Constructor Summary
ChainedIllegalLifeCycleException(Throwable exception, Component component, String message)
          Constructs a new ChainedIllegalLifeCycleException exception.
 
Method Summary
 Component getComponent()
          Returns the component whose life cycle state is illegal.
 Throwable getException()
          Returns the exception that caused in this exception.
 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

ChainedIllegalLifeCycleException

public ChainedIllegalLifeCycleException(Throwable exception,
                                        Component component,
                                        String message)
Constructs a new ChainedIllegalLifeCycleException exception.

Parameters:
exception - the cause of this exception. May be null.
component - the component whose life cycle state is illegal.
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.

getComponent

public Component getComponent()
Returns the component whose life cycle state is illegal.

Returns:
the component whose life cycle state is illegal.

toString

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

Returns:
a String representation of this exception.

printStackTrace

public void printStackTrace()
Prints the stack backtrace.


printStackTrace

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

Parameters:
s - PrintStream to use for output.

printStackTrace

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

Parameters:
s - PrintWriter to use for output.