br.pucrio.inf.les.bdijade.exception
Class BeliefAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by br.pucrio.inf.les.bdijade.exception.BeliefAlreadyExistsException
All Implemented Interfaces:
java.io.Serializable

public class BeliefAlreadyExistsException
extends java.lang.RuntimeException

This class represents an exception that a belief that already exists in the belief base is trying to be added.

Author:
ingrid
See Also:
Serialized Form

Field Summary
private  Belief<?> belief
           
private static long serialVersionUID
           
 
Constructor Summary
BeliefAlreadyExistsException(Belief<?> belief)
          Creates a new instance of BeliefAlreadyExistsException.
 
Method Summary
 Belief<?> getBelief()
           
 java.lang.String 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

belief

private Belief<?> belief
Constructor Detail

BeliefAlreadyExistsException

public BeliefAlreadyExistsException(Belief<?> belief)
Creates a new instance of BeliefAlreadyExistsException.

Parameters:
belief - the belief that already exists.
Method Detail

getBelief

public Belief<?> getBelief()
Returns:
the belief

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
See Also:
Throwable.toString()