[DGD]Question on catch { } : { }

Kris Van Hees aedil at alchar.org
Tue Mar 14 02:32:43 CET 2000


On Mon, Mar 13, 2000 at 03:41:46PM +0100, E. Harte wrote:
> > 	In the catch block it does not seem to be possible to obtain the error
> > message that was raised in the compound block in which errors are being
> > caught.
> > That could be an issue for people (like this wizard apparantly) who wants
> > to do some exception-handling style programming.
> 
> Sure, store the last error message either in thread-data or somewhere in a
> central object when runtime_error() is called and write an efun to query
> this message from whichever storage place you pick?  The worst that could
> happen is that you use the efun and get a result that is from a previous
> thread.

That is indeed a nice workaround for the lack of error message in the compound
block catch.  Thanatos will just have to keep in mind that he should never call
that function outside the catch handler.

	Thanks,

	Kris

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list