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
23: * the exception text
24: */
25:
26: public PortletSecurityException(String text) {
27: super (text);
28: }
29:
30: /**
31: * Constructs a new portlet security exception when the portlet needs to do
32: * the following:
33: * <ul>
34: * <il>throw an exception
35: * <li>include a message about the "root cause" that interfered
36: * with its normal operation
37: * <li>include a description message
38: * </ul>
39: *
40: * @param text
41: * the exception text
42: * @param cause
43: * the root cause
44: */
45:
46: public PortletSecurityException(String text, Throwable cause) {
47: super (text, cause);
48: }
49:
50: /**
51: * Constructs a new portlet security exception when the portlet needs to throw an
52: * exception. The exception message is based on the localized message
53: * of the underlying exception.
54: *
55: * @param cause
56: * the root cause
57: */
58:
59: public PortletSecurityException(Throwable cause) {
60: super(cause);
61: }
62:
63: }
|