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 | 0 | super(attr.toString()); |
35 | 0 | } |
36 | |
|
37 | |
public TagAttributeException(TagAttribute attr, String message) |
38 | |
{ |
39 | 0 | super(attr + " " + message); |
40 | 0 | } |
41 | |
|
42 | |
public TagAttributeException(TagAttribute attr, String message, Throwable cause) |
43 | |
{ |
44 | 0 | super(attr + " " + message, cause); |
45 | 0 | } |
46 | |
|
47 | |
public TagAttributeException(TagAttribute attr, Throwable cause) |
48 | |
{ |
49 | 0 | super(attr + " " + cause.getMessage(), cause); |
50 | 0 | } |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
public TagAttributeException(Tag tag, TagAttribute attr) |
56 | |
{ |
57 | 0 | super(print(tag, attr)); |
58 | 0 | } |
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
public TagAttributeException(Tag tag, TagAttribute attr, String message) |
64 | |
{ |
65 | 0 | super(print(tag, attr) + " " + message); |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
public TagAttributeException(Tag tag, TagAttribute attr, String message, Throwable cause) |
73 | |
{ |
74 | 0 | super(print(tag, attr) + " " + message, cause); |
75 | 0 | } |
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
public TagAttributeException(Tag tag, TagAttribute attr, Throwable cause) |
81 | |
{ |
82 | 0 | super(print(tag, attr) + " " + cause.getMessage(), cause); |
83 | 0 | } |
84 | |
|
85 | |
private static String print(Tag tag, TagAttribute attr) |
86 | |
{ |
87 | 0 | return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName() + "=\"" + attr.getValue() + "\">"; |
88 | |
} |
89 | |
} |