@@ -0,0 +1,1463 @@
+/*%0A * Copyright 2014 Groupon, Inc%0A * Copyright 2014 The Billing Project, LLC%0A *%0A * The Billing Project licenses this file to you under the Apache License, version 2.0%0A * (the %22License%22); you may not use this file except in compliance with the%0A * License.  You may obtain a copy of the License at:%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the%0A * License for the specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage org.killbill.billing.jaxrs.mappers;%0A%0Aimport javax.inject.Singleton;%0Aimport javax.ws.rs.core.Context;%0Aimport javax.ws.rs.core.Response;%0Aimport javax.ws.rs.core.UriInfo;%0Aimport javax.ws.rs.ext.ExceptionMapper;%0Aimport javax.ws.rs.ext.Provider;%0A%0Aimport com.fasterxml.jackson.databind.JsonMappingException;%0A%0A@Singleton%0A@Provider%0Apublic class JsonMappingExceptionMapper extends ExceptionMapperBase implements ExceptionMapper%3CJsonMappingException%3E %7B%0A%0A    private final UriInfo uriInfo;%0A%0A    public JsonMappingExceptionMapper(@Context final UriInfo uriInfo) %7B%0A        this.uriInfo = uriInfo;%0A    %7D%0A%0A    @Override%0A    public Response toResponse(final JsonMappingException exception) %7B%0A        // Likely bad arguments%0A        return buildBadRequestResponse(exception, uriInfo);%0A    %7D%0A%7D%0A

add JsonMappingExceptionMapper