dev@jsr311.java.net

Re: JSR311: ExceptionMapper<E extends Throwable>

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 18 Jul 2008 20:38:58 -0400

On Jul 17, 2008, at 6:43 AM, Stephan Koops wrote:
>
> what about alter the definition of ExceptionMapper<E> to
> ExceptionMapper<E extends Throwable> ? And perhaps also
> Providers.getExceptionMapper(.) : <T extends Throwable>?
>
I really don't think we should be encouraging folks to catch Errors or
raw Throwables in their apps as these represent serious failures.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.