KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > security > jacc > PolicyContextException


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package javax.security.jacc;
25
26 import java.lang.Exception JavaDoc;
27
28 /**
29  * This checked exception is thrown by implementations of the
30  * <code>javax.security.jacc.PolicyConfiguration</code> Interface, the
31  * <code>javax.security.jacc.PolicyConfigurationFactory</code> abstract class,
32  * the <code>javax.security.jacc.PolicyContext</code> utility class, and
33  * implementations of the
34  * <code>javax.security.jacc.PolicyContextException</code> Interface.
35  * <P>
36  * This exception is used by javax.security.jacc implementation
37  * classes to rethrow checked exceptions ocurring within an
38  * implementation that are not declared by the interface or class
39  * being implemented.
40  *
41  * @see java.lang.Exception
42  * @see javax.security.jacc.PolicyConfiguration
43  * @see javax.security.jacc.PolicyConfigurationFactory
44  * @see javax.security.jacc.PolicyContext
45  * @see javax.security.jacc.PolicyContextHandler
46  *
47  * @author Ron Monzillo
48  * @author Gary Ellison
49  */

50
51 public class PolicyContextException extends java.lang.Exception JavaDoc {
52
53    /**
54     * Constructs a new PolicyContextException with
55     * <code>null</code> as its detail message.
56     * describing the cause of the exception.
57     */

58     public PolicyContextException()
59     {
60         super();
61     }
62
63    /**
64     * Constructs a new PolicyContextException with the specified detail message
65     * @param msg - a <code>String</code> containing a detail message
66     * describing the cause of the exception.
67     */

68
69     public PolicyContextException(String JavaDoc msg)
70     {
71         super(msg);
72     }
73
74    /**
75     * Constructs a new PolicyContextException with the specified detail message
76     * and cause. The cause will be encapsulated in the constructed exception.
77     * @param msg - a <code>String containing a detail message describing the
78     * cause of the exception.
79     * @param cause - the Throwable that is "causing" this exception to be
80     * constructed. A null value is permitted, and the value passed through
81     * this parameter may subsequently be retrieved by calling
82     * <code>getCause()</code> on the constructed exception.
83     */

84
85     public PolicyContextException(String JavaDoc msg, Throwable JavaDoc cause)
86     {
87         super(msg,cause);
88     }
89
90    /**
91     * Constructs a new PolicyContextException with the specified cause.
92     * The cause will be encapsulated in the constructed exception.
93     *
94     * @param cause - the Throwable that is "causing" this exception to be
95     * constructed. A null value is permitted, and the value passed through
96     * this parameter may subsequently be retrieved by calling
97     * <code>getCause()</code> on the constructed exception.
98     */

99
100     public PolicyContextException(Throwable JavaDoc cause)
101     {
102         super(cause);
103     }
104 }
105
106
107
108
109
110
Popular Tags