Error Handling
Two general types of errors can occur with method invocations:
1. | During the delivery of a method invocation to, or the results back from, a microagent. This condition will cause the invoke() method to throw a MicroAgentException . |
2. | During the invocation of the method on the microagent itself. This condition will cause this method to deliver a MicroAgentException in the data field of the MicroAgentData return. |
Thus, a successful method invocation is one that doesn't throw an exception and does not deliver a MicroAgentException
in the data field of its MicroAgentData
return.
If the method invocation is successful, the data field of its MicroAgentData
return will contain the method's return value or null if the method doesn't return a value.