users@jsr311.java.net

Re: what to do, if a resource method throws an Error?

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Tue, 15 Jul 2008 11:58:45 +0200

+1

Marc Hadley schrieb:
> On Jul 11, 2008, at 4:12 PM, Stephan Koops wrote:
>> I agree for Errors. I think we should define it. If a JAX-RS runtime
>> env uses refections it has the Throwable in his
>> InvocationTargetException and he has something to do with it. You
>> could rethrow an Error, but not a Throwable, because it must be
>> catched. But throw it away is also not good ...
> Seems like the simplest solution is to treat Error like an unchecked
> exception and Throwable like a checked exception.
>
> Marc.