public class FIPAException extends java.lang.Exception implements Predicate
jade.domain.FIPAAgentManagement
. It has two
constructors, one based on an ACLMessage, and the second based on its
content, i.e. the exception message.Modifier and Type | Field and Description |
---|---|
protected ACLMessage |
msg |
Constructor and Description |
---|
FIPAException(ACLMessage message)
Constructs a
FIPAException from the given ACL
message. |
FIPAException(java.lang.String message)
Constructs a generic
FIPAException . |
Modifier and Type | Method and Description |
---|---|
ACLMessage |
getACLMessage()
Retrieve the ACL message whose content is represented by this
exception.
|
java.lang.String |
getMessage()
Get the content of the ACL message representing this exception
|
protected void |
setMessage(java.lang.String message)
Set the content of the ACL message representing this exception
|
protected ACLMessage msg
public FIPAException(java.lang.String message)
FIPAException
. The ACL message
performative is defaulted to not-understood
.message
- is the content of the ACLMessagepublic FIPAException(ACLMessage message)
FIPAException
from the given ACL
message.message
- is the ACL message representing this exceptionpublic ACLMessage getACLMessage()
protected void setMessage(java.lang.String message)
message
- is the contentpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable