org.gridlab.gat.steering
Class NoSuchControlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gridlab.gat.GATInvocationException
              extended by org.gridlab.gat.steering.NoSuchControlException
All Implemented Interfaces:
Serializable

public class NoSuchControlException
extends GATInvocationException

See Also:
Serialized Form

Constructor Summary
NoSuchControlException()
           
NoSuchControlException(String s)
           
NoSuchControlException(String adaptor, Throwable t)
           
 
Method Summary
 void add(String adaptor, String description, Throwable t)
          Adds a throwable to this NestedException, which is caused by the given adaptor
 void add(String adaptor, Throwable t)
          Adds a throwable to this NestedException, which is caused by the given adaptor
 String[] getAdaptors()
          returns an array of all the adaptors that caused an exception on this NestedException
 Throwable[] getExceptions()
          returns an array of all the throwables that are inside the nested exception
 String getMessage()
           
 String getMessage(String indent)
          gets the message of the NestedException, where each line of the exception is indented by the supplied indentation String.
 int getNrChildren()
          returns the number of children of the nested exception If children of this NestedException turn out to be NestedExceptions, they are counted as just one child, so only first line children are counted.
 String getSuperMessage()
          this method provides a way to access the getMessage of the Exception class
 void printStackTrace()
          prints the stack trace of the NestedException.
 void printStackTrace(PrintStream stream)
          prints the stack trace of the NestedException to the given stream
 void printStackTrace(PrintStream stream, String indent)
          prints the stack trace of the NestedException to the given stream, where each line of the exception is indented by the supplied indentation String.
 void printStackTrace(PrintWriter writer)
          prints the stacktrace of the NestedException to the given writer.
 void printStackTrace(PrintWriter writer, String indent)
          prints the stacktrace of the NestedException to the given writer, where each line of the exception is indented by the supplied indentation String.
 void printStackTrace(String indent)
          prints the stack trace of the NestedException, where each line of the exception is indented by the supplied indentation String.
 String toString()
           
 String toString(String indent)
          gets the String representation of the NestedException, where each line of the exception is indented by the supplied indentation String.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchControlException

public NoSuchControlException()

NoSuchControlException

public NoSuchControlException(String adaptor,
                              Throwable t)

NoSuchControlException

public NoSuchControlException(String s)
Method Detail

add

public void add(String adaptor,
                Throwable t)
Adds a throwable to this NestedException, which is caused by the given adaptor

Parameters:
adaptor - the adaptor that caused the throwable
t - the throwable that is caused by the adaptor

add

public void add(String adaptor,
                String description,
                Throwable t)
Adds a throwable to this NestedException, which is caused by the given adaptor

Parameters:
adaptor - the adaptor that caused the throwable
description - the description of the activity that caused this exception
t - the throwable that is caused by the adaptor

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getMessage

public String getMessage(String indent)
gets the message of the NestedException, where each line of the exception is indented by the supplied indentation String.

Parameters:
indent -
Returns:
the indented message of the exception

toString

public String toString()
Overrides:
toString in class Throwable

getSuperMessage

public String getSuperMessage()
this method provides a way to access the getMessage of the Exception class

Returns:
the getMessage of the Exception class

toString

public String toString(String indent)
gets the String representation of the NestedException, where each line of the exception is indented by the supplied indentation String.

Parameters:
indent -
Returns:
the indented String representation of the exception

printStackTrace

public void printStackTrace()
prints the stack trace of the NestedException.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(String indent)
prints the stack trace of the NestedException, where each line of the exception is indented by the supplied indentation String. Mostly provided for backwards compatibility.

Parameters:
indent - indentation of written text

printStackTrace

public void printStackTrace(PrintStream stream)
prints the stack trace of the NestedException to the given stream

Overrides:
printStackTrace in class Throwable
Parameters:
stream - destination of the stacktrace

printStackTrace

public void printStackTrace(PrintWriter writer)
prints the stacktrace of the NestedException to the given writer.

Overrides:
printStackTrace in class Throwable
Parameters:
writer - destination of the stacktrace

printStackTrace

public void printStackTrace(PrintStream stream,
                            String indent)
prints the stack trace of the NestedException to the given stream, where each line of the exception is indented by the supplied indentation String.

Parameters:
stream - destination of the stacktrace
indent - indentation of written text

printStackTrace

public void printStackTrace(PrintWriter writer,
                            String indent)
prints the stacktrace of the NestedException to the given writer, where each line of the exception is indented by the supplied indentation String.

Parameters:
writer - destination of the stacktrace
indent - indentation of written text

getExceptions

public Throwable[] getExceptions()
returns an array of all the throwables that are inside the nested exception

Returns:
an array of throwables containing the exceptions

getAdaptors

public String[] getAdaptors()
returns an array of all the adaptors that caused an exception on this NestedException

Returns:
an array of adaptors that caused the exceptions

getNrChildren

public int getNrChildren()
returns the number of children of the nested exception If children of this NestedException turn out to be NestedExceptions, they are counted as just one child, so only first line children are counted. Grand children are not counted!

Returns:
the number of children