KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > protocol > http > parser > HTMLParseError


1 // $Header: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/HTMLParseError.java,v 1.3 2004/02/11 22:43:06 sebb Exp $
2
/*
3  * Copyright 2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * 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  * Error class for use with HTMLParser classes.
22  * The main rationale for the class is to support chained
23  * Errors in JDK 1.3
24  *
25  * @author <a HREF="mailto:jsalvata@apache.org">Jordi Salvat i Alabart</a>
26  * @version $Revision: 1.3 $ updated on $Date: 2004/02/11 22:43:06 $
27  */

28 public class HTMLParseError extends Error JavaDoc
29 {
30     private Throwable JavaDoc savedCause; //Support JDK1.4 getCause() on JDK1.3
31

32     /**
33      *
34      */

35     public HTMLParseError()
36     {
37         super();
38     }
39
40     /**
41      * @param message
42      */

43     public HTMLParseError(String JavaDoc message)
44     {
45         super(message);
46     }
47
48     /**
49      * @param cause
50      */

51     public HTMLParseError(Throwable JavaDoc cause)
52     {
53         //JDK1.4: super(cause);
54
savedCause = cause;
55     }
56
57     /**
58      * @param message
59      * @param cause
60      */

61     public HTMLParseError(String JavaDoc message, Throwable JavaDoc cause)
62     {
63         //JDK1.4: super(message, cause);
64
super(message);
65         savedCause = cause;
66     }
67     
68     /**
69      * Local verstion of getCause() for JDK1.3 support
70      *
71      */

72     public Throwable JavaDoc getCause()
73     {
74         return savedCause;
75     }
76 }
77
Popular Tags