Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. package org.acme.rest.json;
  2.  
  3. import javax.ws.rs.GET;
  4. import javax.ws.rs.NotFoundException;
  5. import javax.ws.rs.Path;
  6. import javax.ws.rs.core.Response;
  7.  
  8. @Path("issue3405")
  9. public class ExceptionThrowingResource {
  10.  
  11. // I have nothing to do with UnrelatedResource
  12. // I am a resource class
  13. // I have a @Path
  14. // I have a @GET method
  15. // My @GET method throws NotFoundException
  16.  
  17. @GET
  18. public Response doSomething() {
  19. throw new NotFoundException();
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement