org.fhcrc.cpl.toolbox.commandline
Class CommandLineModuleExecutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.fhcrc.cpl.toolbox.commandline.CommandLineModuleExecutionException
All Implemented Interfaces:
java.io.Serializable

public class CommandLineModuleExecutionException
extends java.lang.Exception

This class is used to communicate that execution Did Not Go Well, and information about why

See Also:
Serialized Form

Field Summary
protected  java.lang.Exception mNestedException
           
protected  boolean mShouldShowStackTrace
           
 
Constructor Summary
CommandLineModuleExecutionException(java.lang.Exception e)
           
CommandLineModuleExecutionException(java.lang.String message)
           
CommandLineModuleExecutionException(java.lang.String message, boolean shouldShowStackTrace)
           
CommandLineModuleExecutionException(java.lang.String message, java.lang.Exception e)
           
 
Method Summary
 java.lang.Exception getNestedException()
           
 void printStackTrace(java.io.PrintStream out)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 void setShouldShowStackTrace(boolean shouldShowStackTrace)
           
 boolean shouldShowStackTrace()
          Indicates whether stack trace should be shown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mNestedException

protected java.lang.Exception mNestedException

mShouldShowStackTrace

protected boolean mShouldShowStackTrace
Constructor Detail

CommandLineModuleExecutionException

public CommandLineModuleExecutionException(java.lang.String message)

CommandLineModuleExecutionException

public CommandLineModuleExecutionException(java.lang.Exception e)

CommandLineModuleExecutionException

public CommandLineModuleExecutionException(java.lang.String message,
                                           java.lang.Exception e)

CommandLineModuleExecutionException

public CommandLineModuleExecutionException(java.lang.String message,
                                           boolean shouldShowStackTrace)
Method Detail

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Overrides:
printStackTrace in class java.lang.Throwable

shouldShowStackTrace

public boolean shouldShowStackTrace()
Indicates whether stack trace should be shown. If we're getting an exception we don't understand, best to show stack trace. If, instead, it's something like a missing file, better to give a meaningful message and leave it at that.

Returns:

setShouldShowStackTrace

public void setShouldShowStackTrace(boolean shouldShowStackTrace)

getNestedException

public java.lang.Exception getNestedException()


Fred Hutchinson Cancer Research Center