To catch the uncaught Exception


Subject: To catch the uncaught Exception
From: John J. Mikucki (jjm7570@cs.rit.edu)
Date: Wed Sep 25 2002 - 21:02:39 MET DST


Hello--

        I am developing a MAS which runs on about 100-150 machines. From time
to time, my agents die unexpectedly. Because they never 'voluntarily'
terminate, and because I never send them 'kill' messages, I assume that
exceptions are being thrown that I am not catching. I would very much
like to register my own default exception handler in the Agent.run()
method, so that I can capture the stack trace to a file rather than
running frantically around my building. :)

Ideally, I'd just toss my logging code in, say, Agent.takedown() but I
do not have access to the exception in that method. Is there a
preferred way to do this that I do not see? Or should I simply go in
and modify the JADE source to do what I want?

Thanks

John



This archive was generated by hypermail 2a22 : Wed Sep 25 2002 - 21:02:52 MET DST