Hejlsberg meant the case where an Exception is re-thrown and not wrapped.
And by that I mean re-thrown-as-another-Exception:
try { .... } catch (SomeException se) { throw new SomeOtherException (); }
I see. So my understanding of:
try {
....
} catch (SomeException se) {
....
throw se;
}is still valid.
And if we use a cascading exception we can still get to the original in your example above:
try {
....
} catch (SomeException se) {
....
throw new SomeOtherException(se);
}I just wanted to make sure I didn't misinterpret what was said.
