Package fr.dyade.aaa.agent
Class ExceptionNotification
- java.lang.Object
-
- fr.dyade.aaa.agent.Notification
-
- fr.dyade.aaa.agent.ExceptionNotification
-
- All Implemented Interfaces:
Encodable,Serializable,Cloneable
public class ExceptionNotification extends Notification
Notify by the engine to the sender of a notification when the corresponding reaction throws an exception.- See Also:
Engine, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description AgentIdagentThe target agent id.ExceptionexcThe exception thrown.NotificationnotThe failing notification.(package private) static longserialVersionUID-
Fields inherited from class fr.dyade.aaa.agent.Notification
deadNotificationAgentId, detachable, detached, expiration, messageId, persistent, priority
-
Fields inherited from interface fr.dyade.aaa.common.encoding.Encodable
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
-
-
Constructor Summary
Constructors Constructor Description ExceptionNotification(AgentId agent, Notification not, Exception exc)Allocates a newExceptionNotificationnotification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuildertoString(StringBuilder output)Appends a string image for this object to the StringBuilder parameter.-
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, decode, encode, getContext, getDeadNotificationAgentId, getEncodableClassId, getEncodedSize, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
agent
public AgentId agent
The target agent id.
-
not
public Notification not
The failing notification.
-
exc
public Exception exc
The exception thrown.
-
-
Constructor Detail
-
ExceptionNotification
public ExceptionNotification(AgentId agent, Notification not, Exception exc)
Allocates a newExceptionNotificationnotification.- Parameters:
agent- The target agent id.not- The failing notification.exc- The exception thrown.
-
-
Method Detail
-
toString
public StringBuilder toString(StringBuilder output)
Appends a string image for this object to the StringBuilder parameter.- Overrides:
toStringin classNotification- Parameters:
output- buffer to fill in- Returns:
outputbuffer is returned
-
-