package org.jboss.resteasy.test.exception.resource;

import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;

@Provider
public class ExceptionMapperRuntimeExceptionMapper implements ExceptionMapper<RuntimeException> {

   @Override
   public Response toResponse(RuntimeException exception) {
      return Response.status(Response.Status.NOT_ACCEPTABLE).build();
   }
}
