public class FIPAException extends 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 |
---|---|
private String |
content |
protected ACLMessage |
msg |
Constructor and Description |
---|
FIPAException(ACLMessage message)
Constructs a
FIPAException from the given ACL
message. |
FIPAException(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.
|
String |
getMessage()
Get the content of the ACL message representing this exception
|
protected void |
setMessage(String message)
Set the content of the ACL message representing this exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected ACLMessage msg
private String content
public FIPAException(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(String message)
message
- is the contentpublic String getMessage()
getMessage
in class Throwable