Mail Archives: djgpp/1994/04/09/06:28:44
I don't have Stroustrup and Ellis at hand, and am not sure that GNU
C++ exception handling is identical. But I think you need to specify
which errors you're going to try to catch in the try block:
try (error1, error2) { throw(error1(initializer)); func(); };
catch (error1) { /* handle type 1 errors */ };
catch (error2) { /* handle type 2 errors, presumably thrown by func() */ };
I probably have the parenthesization wrong in the try and catch
blocks.
I also believe the throw(error) in the definition of xdiv() is
redundant, but I'm not sure.
If I have time, I check the book later.
--Steve
- Raw text -