All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.swarm.jaxrs.JsonParsingExceptionResource Maven / Gradle / Ivy

There is a newer version: 2017.5.0
Show newest version
package org.wildfly.swarm.jaxrs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

import com.fasterxml.jackson.core.JsonLocation;
import com.fasterxml.jackson.core.JsonParseException;

/**
 * @author Bob McWhirter
 */
@Path( "/json")
public class JsonParsingExceptionResource {

    @GET
    @Path( "/throw" )
    public Response get() throws JsonParseException {
        throw new JsonParseException( "that didn't work", new JsonLocation( "synthetic.json", 0, 0, 0)  );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy