01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package org.apache.jmeter.protocol.http.parser;
19:
20: /**
21: * @author <a href="mailto:jsalvata@apache.org">Jordi Salvat i Alabart</a>
22: * @version $Revision: 493789 $ updated on $Date: 2007-01-07 18:10:21 +0000 (Sun, 07 Jan 2007) $
23: */
24: public class HTMLParseException extends Exception {
25: private Throwable savedCause; // Support JDK1.4 getCause() on JDK1.3
26:
27: /**
28: *
29: */
30: public HTMLParseException() {
31: super ();
32: }
33:
34: /**
35: * @param message
36: */
37: public HTMLParseException(String message) {
38: super (message);
39: }
40:
41: /**
42: * @param cause
43: */
44: public HTMLParseException(Throwable cause) {
45: // JDK1.4: super(cause);
46: super ();
47: savedCause = cause;
48: }
49:
50: /**
51: * @param message
52: * @param cause
53: */
54: public HTMLParseException(String message, Throwable cause) {
55: // JDK1.4: super(message, cause);
56: super (message);
57: savedCause = cause;
58: }
59:
60: /**
61: * Local verstion of getCause() for JDK1.3 support
62: *
63: */
64: public Throwable getCause() {
65: return savedCause;
66: }
67: }
|