users@jsr311.java.net

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

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 11 Jul 2008 16:08:57 -0400

Errors represent something pretty serious going wrong, I don't think a
JAX-RS implementation should even catch them. Same for Throwable and
non-standard subclasses of Throwable I think.

Marc.

On Jul 11, 2008, at 1:54 PM, Stephan Koops wrote:

> Hi,
>
> for checked and unchecked Exception from a resource method the JAX-
> RS spec defines what to do. What to do with Errors? and other
> Throwables? Errors the same as with unchecked Exceptions? And other
> Throwables? Also wrap into a container specific Exception?
>
> Constructors of root resource classes and providers may also throw
> Throwables.
>
> best regard
> Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>

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