org.objectweb.fractal.julia
Class ChainedNoSuchInterfaceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.objectweb.fractal.api.NoSuchInterfaceException
              extended by org.objectweb.fractal.julia.ChainedNoSuchInterfaceException
All Implemented Interfaces:
Serializable

public class ChainedNoSuchInterfaceException
extends NoSuchInterfaceException

A sub class of the NoSuchInterfaceException class.

See Also:
Serialized Form

Constructor Summary
ChainedNoSuchInterfaceException(Throwable exception, Component component, String message)
          Constructs a new ChainedNoSuchInterfaceException exception.
 
Method Summary
 Component getComponent()
          Returns the component whose interface cannot be found.
 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

ChainedNoSuchInterfaceException

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

Parameters:
exception - the cause of this exception. May be null.
component - the component whose interface cannot be found. May be null.
message - the name of the interface that cannot be found.
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 interface cannot be found.

Returns:
the component whose interface cannot be found. 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.