Skip to content

Commit

Permalink
fix CatchExceptionMapper so that it is not picked by JAX-RS every time
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Dec 23, 2010
1 parent c4a1c2a commit bde92d4
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -23,7 +23,7 @@
import javax.inject.Inject;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.ResponseBuilder;
import javax.ws.rs.ext.Provider;
import javax.ws.rs.ext.ExceptionMapper;

import org.jboss.logging.Logger;
import org.jboss.seam.exception.control.CaughtException;
Expand All @@ -49,10 +49,9 @@
* @author <a href="http://community.jboss.org/people/dan.j.allen">Dan Allen</a>
* @author <a href="mailto:jharting@redhat.com">Jozef Hartinger</a>
*/
@Provider
@ApplicationScoped
@HandlesExceptions
public class CatchExceptionMapper extends SeamExceptionMapper
public class CatchExceptionMapper extends SeamExceptionMapper implements ExceptionMapper<Throwable>
{
@Inject
@RestResource
Expand Down

0 comments on commit bde92d4

Please sign in to comment.