View Javadoc

1   package com.atlassian.plugins.rest.module.scope;
2   
3   import javax.ws.rs.WebApplicationException;
4   import javax.ws.rs.core.Response;
5   
6   /**
7    * Thrown when an Scope check fails
8    *
9    * @since 3.2
10   */
11  public class ScopeCheckFailedException extends WebApplicationException {
12  
13      public ScopeCheckFailedException(Response.Status status) {
14          super(Response.status(status).entity("Scope Check Failed").build());
15      }
16  }