KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > portlet > PortletSecurityException


1 /**
2   * Copyright 2003 IBM Corporation and Sun Microsystems, Inc.
3   * All rights reserved.
4   * Use is subject to license terms.
5   */

6
7 package javax.portlet;
8
9 /**
10  * A portlet should throw a <CODE>PortletSecurityException</CODE>
11  * when a call fails because of security reasons.<br>
12  * Additionally it can be thrown by the portal/portlet-container.
13  */

14
15 public class PortletSecurityException extends PortletException
16 {
17
18   private PortletSecurityException ()
19   {
20   }
21
22   /**
23    * Constructs a new security exception with the given text. The
24    * portlet container may use the text write it to a log.
25    *
26    * @param text
27    * the exception text
28    */

29
30   public PortletSecurityException (String JavaDoc text)
31   {
32     super (text);
33   }
34
35   /**
36    * Constructs a new portlet security exception when the portlet needs to do
37    * the following:
38    * <ul>
39    * <il>throw an exception
40    * <li>include a message about the "root cause" that interfered
41    * with its normal operation
42    * <li>include a description message
43    * </ul>
44    *
45    * @param text
46    * the exception text
47    * @param cause
48    * the root cause
49    */

50   
51   public PortletSecurityException (String JavaDoc text, Throwable JavaDoc cause)
52   {
53     super(text, cause);
54   }
55
56   /**
57    * Constructs a new portlet security exception when the portlet needs to throw an
58    * exception. The exception message is based on the localized message
59    * of the underlying exception.
60    *
61    * @param cause
62    * the root cause
63    */

64
65   public PortletSecurityException (Throwable JavaDoc cause)
66   {
67     super(cause);
68   }
69
70
71 }
72
Popular Tags