com.werken.werkz
Class CyclicGoalChainException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.werken.werkz.WerkzException
              extended by com.werken.werkz.CyclicGoalChainException
All Implemented Interfaces:
java.io.Serializable

public class CyclicGoalChainException
extends WerkzException

Indicates a dependency cycle within the Goal graph.

Author:
bob mcwhirter
See Also:
Goal#addPrerequisite, Serialized Form

Field Summary
private  Goal initialGoal
          The initial goal from which the cycle-check was initiated.
 
Constructor Summary
CyclicGoalChainException(Goal initialGoal)
          Constrct with an initiating goal.
 
Method Summary
 Goal getInitialGoal()
          Retrieve the Goal which initiated the dependency cycle check.
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

initialGoal

private Goal initialGoal
The initial goal from which the cycle-check was initiated.

Constructor Detail

CyclicGoalChainException

public CyclicGoalChainException(Goal initialGoal)
Constrct with an initiating goal.

Parameters:
initialGoal - The Goal which initiated the cycle check.
Method Detail

getInitialGoal

public Goal getInitialGoal()
Retrieve the Goal which initiated the dependency cycle check.

Returns:
The initiating Goal.

getMessage

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