1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.jasper;
19
20 /***
21 * Base class for all exceptions generated by the JSP engine. Makes it
22 * convienient to catch just this at the top-level.
23 *
24 * @author Anil K. Vijendran
25 */
26 public class JasperException extends javax.servlet.ServletException {
27
28 public JasperException(String reason) {
29 super(reason);
30 }
31
32 /***
33 * Creates a JasperException with the embedded exception and the reason for
34 * throwing a JasperException
35 */
36 public JasperException(String reason, Throwable exception) {
37 super(reason, exception);
38 }
39
40 /***
41 * Creates a JasperException with the embedded exception
42 */
43 public JasperException(Throwable exception) {
44 super(exception);
45 }
46 }