/*
 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * $Id: ExceptionMapperTwo.java 75010 2017-05-30 19:45:08Z jsupol $ 
 */

package com.sun.ts.tests.jaxrs.jaxrs21.ee.priority;

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

@Provider
@Priority(20)
public class ExceptionMapperTwo implements ExceptionMapper<TckPriorityException> {

	@Override
	public Response toResponse(TckPriorityException exception) {
		return Response.ok().entity(getClass().getName()).build();
	}

}
