com.werken.werkz
Class UnattainableGoalException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.werken.werkz.WerkzException
              extended bycom.werken.werkz.UnattainableGoalException
All Implemented Interfaces:
java.io.Serializable

public class UnattainableGoalException
extends WerkzException

Indicates an error while attempting to satisfy a Goal.

Author:
bob mcwhirter
See Also:
Werkz#attainGoal, Goal.attain(com.werken.werkz.Session), Serialized Form

Field Summary
private  java.lang.String goalName
          Name of goal in which an error occurred.
private  java.lang.Throwable rootCause
          Root exception.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
UnattainableGoalException(java.lang.String goalName, java.lang.Throwable rootCause)
          Construct with a goal name and root cause.
 
Method Summary
 java.lang.String getGoalName()
          Retrieve the name of the goal in which the error occurred.
 java.lang.String getMessage()
           
 java.lang.Throwable getRootCause()
          Retrieve the root cause of the error.
 void printStackTrace()
          Print the stack-trace of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

goalName

private java.lang.String goalName
Name of goal in which an error occurred.


rootCause

private java.lang.Throwable rootCause
Root exception.

Constructor Detail

UnattainableGoalException

public UnattainableGoalException(java.lang.String goalName,
                                 java.lang.Throwable rootCause)
Construct with a goal name and root cause.

Parameters:
goalName - The name of the goal in which an error occurred.
rootCause - The original error.
Method Detail

getGoalName

public java.lang.String getGoalName()
Retrieve the name of the goal in which the error occurred.

Returns:
The name of the goal in which the error occurred.

getRootCause

public java.lang.Throwable getRootCause()
Retrieve the root cause of the error.

Returns:
The root cause.

printStackTrace

public void printStackTrace()
Print the stack-trace of this exception.


getMessage

public java.lang.String getMessage()