SHARE
TWEET

Untitled

a guest Aug 14th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top