01: /**
02: * Copyright 2003 IBM Corporation and Sun Microsystems, Inc.
03: * All rights reserved.
04: * Use is subject to license terms.
05: */package javax.portlet;
06:
07: /**
08: * A portlet should throw a <CODE>PortletSecurityException</CODE>
09: * when a call fails because of security reasons.<br>
10: * Additionally it can be thrown by the portal/portlet-container.
11: */
12:
13: public class PortletSecurityException extends PortletException {
14:
15: private PortletSecurityException() {
16: }
17:
18: /**
19: * Constructs a new security exception with the given text. The
20: * portlet container may use the text write it to a log.
21: *
22: * @param text the exception text
23: */
24:
25: public PortletSecurityException(String text) {
26: super (text);
27: }
28:
29: /**
30: * Constructs a new portlet security exception when the portlet needs to do
31: * the following:
32: * <ul>
33: * <il>throw an exception
34: * <li>include a message about the "root cause" that interfered
35: * with its normal operation
36: * <li>include a description message
37: * </ul>
38: *
39: * @param text the exception text
40: * @param cause the root cause
41: */
42:
43: public PortletSecurityException(String text, Throwable cause) {
44: super (text, cause);
45: }
46:
47: /**
48: * Constructs a new portlet security exception when the portlet needs to throw an
49: * exception. The exception message is based on the localized message
50: * of the underlying exception.
51: *
52: * @param cause the root cause
53: */
54:
55: public PortletSecurityException(Throwable cause) {
56: super(cause);
57: }
58:
59: }
|