Jadex 0.941

jadex.runtime
Class GoalFailureException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjadex.runtime.BDIFailureException
                  extended byjadex.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.


Jadex 0.941

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-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.