Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.acme.rest.json;
- import javax.ws.rs.GET;
- import javax.ws.rs.NotFoundException;
- import javax.ws.rs.Path;
- import javax.ws.rs.core.Response;
- @Path("issue3405")
- public class ExceptionThrowingResource {
- // I have nothing to do with UnrelatedResource
- // I am a resource class
- // I have a @Path
- // I have a @GET method
- // My @GET method throws NotFoundException
- @GET
- public Response doSomething() {
- throw new NotFoundException();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement