1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package javax.portlet;
22
23 /***
24 * A portlet should throw a <CODE>PortletSecurityException</CODE>
25 * when a call fails because of security reasons.<br>
26 * Additionally it can be thrown by the portal/portlet-container.
27 */
28
29 public class PortletSecurityException extends PortletException
30 {
31
32
33 private PortletSecurityException ()
34 {
35 }
36
37 /***
38 * Constructs a new security exception with the given text. The
39 * portlet container may use the text write it to a log.
40 *
41 * @param text
42 * the exception text
43 */
44
45 public PortletSecurityException (String text)
46 {
47 super (text);
48 }
49
50 /***
51 * Constructs a new portlet security exception when the portlet needs to do
52 * the following:
53 * <ul>
54 * <il>throw an exception
55 * <li>include a message about the "root cause" that interfered
56 * with its normal operation
57 * <li>include a description message
58 * </ul>
59 *
60 * @param text
61 * the exception text
62 * @param cause
63 * the root cause
64 */
65
66 public PortletSecurityException (String text, Throwable cause)
67 {
68 super(text, cause);
69 }
70
71 /***
72 * Constructs a new portlet security exception when the portlet needs to throw an
73 * exception. The exception message is based on the localized message
74 * of the underlying exception.
75 *
76 * @param cause
77 * the root cause
78 */
79
80 public PortletSecurityException (Throwable cause)
81 {
82 super(cause);
83 }
84
85
86 }