Jadex 0.96-beta1

jadex.runtime
Class GoalFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jadex.runtime.BDIFailureException
                  extended by jadex.runtime.GoalFailureException
All Implemented Interfaces:
Serializable

public class GoalFailureException
extends BDIFailureException

An exception automatically thrown, when a subgoal of a plan fails. Note: This exception will not be logged by the logger as it occurs in plans (normal plain failure).

See Also:
Serialized Form

Constructor Summary
GoalFailureException(IGoal goal, String message)
          Create a new goal failure exception.
GoalFailureException(IGoal goal, Throwable cause)
          Create a new goal failure exception.
 
Method Summary
 IGoal getGoal()
          Get the goal that failed.
 String toString()
          Create a string representation of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GoalFailureException

public GoalFailureException(IGoal goal,
                            Throwable cause)
Create a new goal failure exception.

Parameters:
goal - The failed goal.

GoalFailureException

public GoalFailureException(IGoal goal,
                            String message)
Create a new goal failure exception.

Parameters:
goal - The failed goal.
message - The message.
Method Detail

getGoal

public IGoal getGoal()
Get the goal that failed.


toString

public String toString()
Create a string representation of the exception.

Overrides:
toString in class Throwable

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.