dev@jsr311.java.net

Re: JSR311: Exception mapping for runtime generated exceptions

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Tue, 15 Apr 2008 09:01:54 +0200

+1

Stephan

Marc Hadley schrieb:
> We've had several requests on the Jersey mailing lists for a way to
> provide a default entity for certain status codes. We'd like to
> propose that where the spec currently requires a particular status
> code be returned, we instead require that a WebApplicationException
> with the corresponding status and no entity be generated. In addition
> we'd allow an application to provide an
> ExceptionMapper<WebApplicationException> that would be used to map
> instances of WebApplicationException that contain no entity.
>
> Comments ?
> Marc.