KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > facelets > tag > TagException


1 /**
2  * Licensed under the Common Development and Distribution License,
3  * you may not use this file except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://www.sun.com/cddl/
7  *
8  * Unless required by applicable law or agreed to in writing, software
9  * distributed under the License is distributed on an "AS IS" BASIS,
10  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11  * implied. See the License for the specific language governing
12  * permissions and limitations under the License.
13  */

14
15 package com.sun.facelets.tag;
16
17 import com.sun.facelets.FaceletException;
18
19 /**
20  * An Exception caused by a Tag
21  *
22  * @author Jacob Hookom
23  * @version $Id: TagException.java,v 1.3 2005/08/24 04:38:48 jhook Exp $
24  */

25 public final class TagException extends FaceletException {
26
27     /**
28      *
29      */

30     private static final long serialVersionUID = 1L;
31
32     /**
33      *
34      */

35     public TagException(Tag tag) {
36         super(tag.toString());
37     }
38
39     /**
40      * @param message
41      */

42     public TagException(Tag tag, String JavaDoc message) {
43         super(tag + " " + message);
44     }
45
46     /**
47      * @param cause
48      */

49     public TagException(Tag tag, Throwable JavaDoc cause) {
50         super(tag.toString(), cause);
51     }
52
53     /**
54      * @param message
55      * @param cause
56      */

57     public TagException(Tag tag, String JavaDoc message, Throwable JavaDoc cause) {
58         super(tag + " " + message, cause);
59     }
60
61 }
62
Popular Tags