users@jsr311.java.net

Re: Questions on Providers interface

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Thu, 21 Aug 2008 21:18:59 +0200

Hi,
>> 1. Why isn't T declared to extend Exceptions or Throwable?
>
> IIRC we did discuss this a while ago but never settled on an answer.
> Strictly speaking I guess it should be:
>
> public interface ExceptionMapper<E extends Throwable> {...}
>
> and
>
> <T extends Throwable> ExceptionMapper<T> getExceptionMapper(Class<T>
> type);
+1

best reards
   Stephan