es.upv.dsic.gti_ia.architecture
Class FIPAException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by es.upv.dsic.gti_ia.architecture.FIPAException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FailureException, NotUnderstoodException, RefuseException

public class FIPAException
extends Exception

See Also:
Serialized Form

Field Summary
protected  ACLMessage msg
           
 
Constructor Summary
FIPAException(ACLMessage message)
          Constructs a FIPAException from the given ACL message.
FIPAException(String message)
          Constructs a generic FIPAException.
 
Method Summary
 ACLMessage getACLMessage()
          Retrieves the ACL message whose content is represented by this exception.
 String getMessage()
          Gets the content of the ACL message representing this exception
protected  void setMessage(String message)
          Sets the content of the ACL message representing this exception
 
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

msg

protected ACLMessage msg
Constructor Detail

FIPAException

public FIPAException(String message)
Constructs a generic FIPAException. The ACL message performative is defaulted to not-understood.

Parameters:
message - is the content of the ACLMessage

FIPAException

public FIPAException(ACLMessage message)
Constructs a FIPAException from the given ACL message.

Parameters:
message - is the ACL message representing this exception
Method Detail

getACLMessage

public ACLMessage getACLMessage()
Retrieves the ACL message whose content is represented by this exception.

Returns:
the ACLMessage representing this exception

setMessage

protected void setMessage(String message)
Sets the content of the ACL message representing this exception

Parameters:
message - is the content

getMessage

public String getMessage()
Gets the content of the ACL message representing this exception

Overrides:
getMessage in class Throwable
Returns:
A string representing the message content that describes this FIPA exception.


Copyright © 2012 GTI-IA. All Rights Reserved.