-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mark Wielaard wrote:
Hi Tim,
+ catch (Task.TaskException e)
+ {
+ // XXX do real exception handling
+ }
I am all for Checked Exceptions, but this is the worst way to handle
them. This just swallows the exception completely without leaving any
trace that anything went wrong. Now we are worse off then when we had
unchecked exceptions. At least then the exception doesn't just
disappear. Please do fix these locations by either explicitly printing
the exception, or better wrapping them in RuntimeExceptions and
rethrowing them.
I agree that this is terrible style. I believe that you are not very
likely to see a TaskException in the wild and are thus not going to be
bitten by this right now, but the time to fix this is now.