1 18 19 package org.apache.struts.upload; 20 21 import java.io.IOException ; 22 23 30 public class ContentLengthExceededException extends IOException { 31 32 protected String message; 33 34 public ContentLengthExceededException() { 35 message = "The Content-Length has been exceeded for this request"; 36 } 37 38 public ContentLengthExceededException(long contentLength) { 39 40 message = "The Content-Length of " + contentLength + " bytes has been " + 41 "exceeded"; 42 } 43 44 public String getMessage() { 45 return message; 46 } 47 } | Popular Tags |