01: //httpdLimitExceededException.java
02: //-----------------------
03: //(C) by Michael Peter Christen; mc@anomic.de
04: //first published on http://www.anomic.de
05: //Frankfurt, Germany, 2004
06: //
07: // This file is contributed by Martin Thelian
08: // last major change: $LastChangedDate: 2006-08-16 21:49:31 +0200 (Mi, 16 Aug 2006) $ by $LastChangedBy: orbiter $
09: // Revision: $LastChangedRevision: 2414 $
10: //
11: //This program is free software; you can redistribute it and/or modify
12: //it under the terms of the GNU General Public License as published by
13: //the Free Software Foundation; either version 2 of the License, or
14: //(at your option) any later version.
15: //
16: //This program is distributed in the hope that it will be useful,
17: //but WITHOUT ANY WARRANTY; without even the implied warranty of
18: //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19: //GNU General Public License for more details.
20: //
21: //You should have received a copy of the GNU General Public License
22: //along with this program; if not, write to the Free Software
23: //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24: //
25: //Using this software in any meaning (reading, learning, copying, compiling,
26: //running) means that you agree that the Author(s) is (are) not responsible
27: //for cost, loss of data or any harm that may be caused directly or indirectly
28: //by usage of this softare or this documentation. The usage of this software
29: //is on your own risk. The installation and usage (starting/running) of this
30: //software may allow other people or application to access your computer and
31: //any attached devices and is highly dependent on the configuration of the
32: //software which must be done by the user of the software; the author(s) is
33: //(are) also not responsible for proper configuration and usage of the
34: //software, even if provoked by documentation provided together with
35: //the software.
36: //
37: //Any changes to this file according to the GPL as documented in the file
38: //gpl.txt aside this file in the shipment you received can be done to the
39: //lines that follows this copyright notice here, but changes must not be
40: //done inside the copyright notive above. A re-distribution must contain
41: //the intact and unchanged copyright notice.
42: //Contributions and changes to the program code must be marked as such.
43:
44: package de.anomic.http;
45:
46: import java.io.IOException;
47:
48: public class httpdLimitExceededException extends IOException {
49:
50: private static final long serialVersionUID = 1L;
51: private long limit;
52:
53: public httpdLimitExceededException(String errorMsg, long limit) {
54: super (errorMsg);
55: this .limit = limit;
56: }
57:
58: public long getLimit() {
59: return this.limit;
60: }
61: }
|