1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package javax.faces.view.facelets;
20
21
22
23
24 public final class TagAttributeException extends FaceletException
25 {
26
27
28
29
30 private static final long serialVersionUID = 1L;
31
32 public TagAttributeException(TagAttribute attr)
33 {
34 super(attr.toString());
35 }
36
37 public TagAttributeException(TagAttribute attr, String message)
38 {
39 super(attr + " " + message);
40 }
41
42 public TagAttributeException(TagAttribute attr, String message, Throwable cause)
43 {
44 super(attr + " " + message, cause);
45 }
46
47 public TagAttributeException(TagAttribute attr, Throwable cause)
48 {
49 super(attr + " " + cause.getMessage(), cause);
50 }
51
52
53
54
55 public TagAttributeException(Tag tag, TagAttribute attr)
56 {
57 super(print(tag, attr));
58 }
59
60
61
62
63 public TagAttributeException(Tag tag, TagAttribute attr, String message)
64 {
65 super(print(tag, attr) + " " + message);
66 }
67
68
69
70
71
72 public TagAttributeException(Tag tag, TagAttribute attr, String message, Throwable cause)
73 {
74 super(print(tag, attr) + " " + message, cause);
75 }
76
77
78
79
80 public TagAttributeException(Tag tag, TagAttribute attr, Throwable cause)
81 {
82 super(print(tag, attr) + " " + cause.getMessage(), cause);
83 }
84
85 private static String print(Tag tag, TagAttribute attr)
86 {
87 return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName() + "=\"" + attr.getValue() + "\">";
88 }
89 }