KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jcr > access > AccessDeniedException


1 /*
2  * $Id: AccessDeniedException.java,v 1.2 2004/07/24 00:16:22 benjmestrallet Exp $
3  *
4  * Copyright 2002-2004 Day Management AG, Switzerland.
5  *
6  * Licensed under the Day RI License, Version 2.0 (the "License"),
7  * as a reference implementation of the following specification:
8  *
9  * Content Repository API for Java Technology, revision 0.12
10  * <http://www.jcp.org/en/jsr/detail?id=170>
11  *
12  * You may not use this file except in compliance with the License.
13  * You may obtain a copy of the License files at
14  *
15  * http://www.day.com/content/en/licenses/day-ri-license-2.0
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */

24 package javax.jcr.access;
25
26 import javax.jcr.RepositoryException;
27
28 /**
29  * Exception thrown by access-related methods.
30  * <p/>
31  * <b>Level 2 only</b>
32  *
33  * @author Peeter Piegaze
34  */

35 public class AccessDeniedException extends RepositoryException {
36   /**
37    * Constructs a new instance of this class.
38    */

39   public AccessDeniedException() {
40     super();
41   }
42
43   /**
44    * Constructs a new instance of this class given a message describing the
45    * failure cause.
46    *
47    * @param s description
48    */

49   public AccessDeniedException(String JavaDoc s) {
50     super(s);
51   }
52
53   /**
54    * Constructs a new instance of this class given a message describing the
55    * failure and a root exception.
56    *
57    * @param s description
58    * @param e root failure cause
59    */

60   public AccessDeniedException(String JavaDoc s, Exception JavaDoc e) {
61     super(s, e);
62   }
63 }
64
Popular Tags