Models
Class Model.ModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by Exceptions.GeneralException
              extended by Models.Model.ModelException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Model

public class Model.ModelException
extends GeneralException

Exception thrown when there is a problem with the model

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class Exceptions.GeneralException
GeneralException.Debug
 
Constructor Summary
Model.ModelException(java.lang.String reason)
          Constructor when there is no underlying Throwable that caused the problem.
Model.ModelException(java.lang.String reason, java.lang.Throwable cause)
          Constructor when there is an underlying Throwable that caused the problem.
 
Method Summary
 
Methods inherited from class Exceptions.GeneralException
setDebug, 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

Model.ModelException

public Model.ModelException(java.lang.String reason)
Constructor when there is no underlying Throwable that caused the problem. Currnetly used when there is a problem constructing the model, e.g. different number of states in the RateClasses.

Parameters:
reason - The reason for the exception

Model.ModelException

public Model.ModelException(java.lang.String reason,
                            java.lang.Throwable cause)
Constructor when there is an underlying Throwable that caused the problem. Currently used when the frequency for a RateClass can not be evaluated

Parameters:
reason - The reason for the exception
cause - The Throwable that caused the problem