KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Header: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/HTMLParseException.java,v 1.4 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  * @author <a HREF="mailto:jsalvata@apache.org">Jordi Salvat i Alabart</a>
22  * @version $Revision: 1.4 $ updated on $Date: 2004/02/11 22:43:06 $
23  */

24 public class HTMLParseException extends Exception JavaDoc
25 {
26     private Throwable JavaDoc savedCause; //Support JDK1.4 getCause() on JDK1.3
27

28     /**
29      *
30      */

31     public HTMLParseException()
32     {
33         super();
34     }
35
36     /**
37      * @param message
38      */

39     public HTMLParseException(String JavaDoc message)
40     {
41         super(message);
42     }
43
44     /**
45      * @param cause
46      */

47     public HTMLParseException(Throwable JavaDoc cause)
48     {
49         //JDK1.4: super(cause);
50
super();
51         savedCause = cause;
52     }
53
54     /**
55      * @param message
56      * @param cause
57      */

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

69     public Throwable JavaDoc getCause()
70     {
71         return savedCause;
72     }
73 }
74
Popular Tags