es.upv.dsic.gti_ia.architecture
Class FIPAException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
|
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 |
msg
protected ACLMessage msg
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
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.