1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.tapestry.parse; |
16 |
| |
17 |
| import org.apache.hivemind.Locatable; |
18 |
| import org.apache.hivemind.Location; |
19 |
| |
20 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| public class TemplateParseException extends Exception implements Locatable |
28 |
| { |
29 |
| private static final long serialVersionUID = 3741503276431589982L; |
30 |
| |
31 |
| private Location _location; |
32 |
| private Throwable _rootCause; |
33 |
| |
34 |
0
| public TemplateParseException(String message)
|
35 |
| { |
36 |
0
| this(message, null, null);
|
37 |
| } |
38 |
| |
39 |
28
| public TemplateParseException(String message, Location location)
|
40 |
| { |
41 |
28
| this(message, location, null);
|
42 |
| } |
43 |
| |
44 |
28
| public TemplateParseException(String message, Location location, Throwable rootCause)
|
45 |
| { |
46 |
28
| super(message);
|
47 |
| |
48 |
28
| _location = location;
|
49 |
| |
50 |
28
| _rootCause = rootCause;
|
51 |
| |
52 |
| } |
53 |
| |
54 |
28
| public Location getLocation()
|
55 |
| { |
56 |
28
| return _location;
|
57 |
| } |
58 |
| |
59 |
0
| public Throwable getRootCause()
|
60 |
| { |
61 |
0
| return _rootCause;
|
62 |
| } |
63 |
| |
64 |
| } |