View Javadoc

1   package com.atlassian.plugins.rest.common.multipart;
2   
3   import javax.ws.rs.WebApplicationException;
4   import javax.ws.rs.core.Response;
5   
6   /**
7    * Exception indicating the file size limit was exceeded
8    *
9    * @since 2.4
10   */
11  public class FileSizeLimitExceededException extends WebApplicationException
12  {
13      public FileSizeLimitExceededException(String message)
14      {
15          super(Response.status(Response.Status.NOT_FOUND).entity(message).build());
16      }
17  }