View Javadoc

1   /**
2    *  Copyright 2003-2007 Greg Luck
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  
17  package net.sf.ehcache.constructs.web;
18  
19  
20  
21  /**
22   * <p/>
23   * This exception is thrown if, in particular, the {@link javax.servlet.ServletResponse#isCommitted()}
24   * method shows the response has been  committed. A commited response has already had its status code and headers written.
25   * <p/>
26   * One situation that can cause this problem is using jsp:include to include a full, cached page in another
27   * page. When the JSP page is entered the response gets committed.
28   * @see ResponseHeadersNotModifiableException
29   * @author Greg Luck
30   * @version $Id: AlreadyCommittedException.java 512 2007-07-10 09:18:45Z gregluck $
31   */
32  public class AlreadyCommittedException extends ResponseHeadersNotModifiableException {
33  
34      /**
35       * Constructor for the exception
36       */
37      public AlreadyCommittedException() {
38          super();
39      }
40  
41      /**
42       * Constructs an exception with the message given
43       * @param message the message
44       */
45      public AlreadyCommittedException(String message) {
46          super(message);
47      }
48  }