-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6/27/10 10:06 , Dan Godfrey wrote:
>
>
> I think you missed the point. I don't think Reinier was advocating
> always rethrowing exceptions as RuntimeException, just that that's the
> logic that IDEs should autogenerate. I'd much rather have eclipse
> generate (by default)
>
> catch (CheckedEx e) {
> // TODO add handling logic
> throw new RuntimeException("missing handler", e);
> }
>
> than
>
> catch (CheckedEx e) {
> // TODO add handling logic
> }
>
> Obviously you need to fix the handling, but if (as is inevitable)
> someone forgets, you're much better off with the first form than the
> second.
>
+1 - pretty much as IDEs do when implementing abstract methods with
throw new UnsupportedOperationException("You have to implement this").
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
[email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwnc20ACgkQeDweFqgUGxdvmACfUkanUOerNcxEnUbZplQRn/Tp
bOEAoJgw0VzVoycOynYWOtaQuFlly4bM
=tlUf
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.