jade.domain
Class FIPAException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--jade.domain.FIPAException
- Direct Known Subclasses:
- FailureException, NotUnderstoodException, RefuseException
- public class FIPAException
- extends java.lang.Exception
- implements Predicate
This class represents a generic FIPAException, i.e. one of NotUnderstood,Failure,Refuse, as defined in jade.domain.FIPAAgentManagement
.
It has two constructors, one based on an ACLMessage, and the second based
on its content, i.e. the exception message.
- Version:
- $Date: 2002/11/26 15:52:19 $ $Revision: 2.2 $
- Author:
- Giovanni Rimassa - Universita` di Parma
- See Also:
- Serialized Form
Method Summary |
ACLMessage |
getACLMessage()
|
java.lang.String |
getMessage()
get the content of the ACLMessage representing this exception |
protected void |
setMessage(java.lang.String message)
set the content of the ACLMessage representing this exception |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
msg
protected ACLMessage msg
FIPAException
public FIPAException(java.lang.String message)
- constructs a generic FIPAException. The ACLMessage performative is
defaulted to not-understood.
- Parameters:
message
- is the content of the ACLMessage
FIPAException
public FIPAException(ACLMessage message)
- Parameters:
message
- is the ACLMessage representing this exception
getACLMessage
public ACLMessage getACLMessage()
- Returns:
- the ACLMessage representing this exception
setMessage
protected void setMessage(java.lang.String message)
- set the content of the ACLMessage representing this exception
- Parameters:
message
- is the content
getMessage
public java.lang.String getMessage()
- get the content of the ACLMessage representing this exception
- Overrides:
- getMessage in class java.lang.Throwable