Exceptions
Class GeneralException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by Exceptions.GeneralException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AlignmentException, AncestralException, InputException, Likelihood.LikelihoodException, Model.ModelException, Optimizer.OptimizerException, OutputException, Parameters.ParameterException, RateCategory.RateException, TreeException

public class GeneralException
extends java.lang.Exception

Custom exception class that provides different levels of information in a call to toString() based on a debug level.

Version:
1.0
See Also:
Serialized Form

Nested Class Summary
static class GeneralException.Debug
          Enumeration of the different debug levels
 
Constructor Summary
GeneralException(java.lang.String message, java.lang.Throwable cause)
          Default constructor
 
Method Summary
static void setDebug(GeneralException.Debug i)
          Set debug level
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneralException

public GeneralException(java.lang.String message,
                        java.lang.Throwable cause)
Default constructor

Parameters:
message - The reason for the problem
cause - The underlying throwable that caused the problem if applicable or null if not
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

setDebug

public static void setDebug(GeneralException.Debug i)
Set debug level

Parameters:
i - The debug level.