View Single Post
  #4 (permalink)  
Old September 19th, 2008, 09:46
cunninghamg cunninghamg is offline
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 58
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 3
Thanked 11 Times in 9 Posts
Rep Power: 2
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: Error Handling in Agents

Jay

One way you can simulate knowing when an agent fails and handling it - is as follows:

At the beginning of the agent initialise a variable with the value 1

Then at various stages during the course of the agent increment the variable value.

When the agent fails - test for the variable value in the Error Handler and then take what ever actions are necessary.

There is no way that I know of to understand the actual Error and Handle it within the agent.

Gary
Reply With Quote