org.objectweb.fractal.julia.control.content
Class ChainedIllegalContentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.fractal.api.control.IllegalContentException
              extended byorg.objectweb.fractal.julia.control.content.ChainedIllegalContentException
All Implemented Interfaces:
Serializable

public class ChainedIllegalContentException
extends IllegalContentException

A sub class of the IllegalContentException class.

See Also:
Serialized Form

Constructor Summary
ChainedIllegalContentException(Throwable exception, Component component, Component content, String message)
          Constructs a new ChainedIllegalContentException exception.
 
Method Summary
 Component getComponent()
          Returns the component whose content is or would become illegal.
 Component getContent()
          Returns the component that makes the content of getComponent 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

ChainedIllegalContentException

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

Parameters:
exception - the cause of this exception. May be null.
component - the component whose content is or would become illegal.
content - the component that makes the content of component illegal. 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.

getComponent

public Component getComponent()
Returns the component whose content is or would become illegal.

Returns:
the component whose content is or would become illegal.

getContent

public Component getContent()
Returns the component that makes the content of getComponent illegal. More precisely, this method returns the component that would make the content of getComponent illegal if it were added or removed from it.

Returns:
the component that makes the content of getComponent illegal. May be null.

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.