[DGD]Question on catch { } : { }

Kris Van Hees aedil at alchar.org
Mon Mar 13 05:53:33 CET 2000


Hi all,

	Someone on Viking posed an interesting question concerning one of the
less documented uses of catch, being the construct in which you catch an entire
compound block.  Say you have this code:

	catch {
	    int		a, b;

	    a = ob0->func1();
	    b = ob1->func2();

	    ob2->func3(a, b);
	} : {
	    ...
	}

	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.

	Any thoughts?

	Kris

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



More information about the DGD mailing list