View Javadoc

1   package http.utils.multipartrequest;
2   import java.io.IOException;
3   
4   public class MaxReadBytesException extends IOException 
5   {
6   	long maxReadBytes;
7   	long contentLength;
8   	
9   	public MaxReadBytesException(long contentLength, long maxReadBytes)
10  	{
11  		super("Content length exceeded ("+contentLength+" > "+maxReadBytes+")");
12  		this.maxReadBytes = maxReadBytes;
13  		this.contentLength = contentLength;
14  	}
15  
16  	public long getContentLength()
17  	{
18  		return this.contentLength;
19  	}
20  	
21  	public long getMaxReadBytes()
22  	{
23  		return this.maxReadBytes;
24  	}
25  }