01: /**
02: * Licensed under the Common Development and Distribution License,
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at
05: *
06: * http://www.sun.com/cddl/
07: *
08: * Unless required by applicable law or agreed to in writing, software
09: * 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: */package com.sun.facelets.tag;
14:
15: import com.sun.facelets.FaceletException;
16:
17: /**
18: * An Exception caused by a Tag
19: *
20: * @author Jacob Hookom
21: * @version $Id: TagException.java,v 1.3 2005/08/24 04:38:48 jhook Exp $
22: */
23: public final class TagException extends FaceletException {
24:
25: /**
26: *
27: */
28: private static final long serialVersionUID = 1L;
29:
30: /**
31: *
32: */
33: public TagException(Tag tag) {
34: super (tag.toString());
35: }
36:
37: /**
38: * @param message
39: */
40: public TagException(Tag tag, String message) {
41: super (tag + " " + message);
42: }
43:
44: /**
45: * @param cause
46: */
47: public TagException(Tag tag, Throwable cause) {
48: super (tag.toString(), cause);
49: }
50:
51: /**
52: * @param message
53: * @param cause
54: */
55: public TagException(Tag tag, String message, Throwable cause) {
56: super (tag + " " + message, cause);
57: }
58:
59: }
|