KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > AccessException


1 /*
2  * @(#)AccessException.java 1.12 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.rmi;
9
10 /**
11  * An <code>AccessException</code> is thrown by certain methods of the
12  * <code>java.rmi.Naming</code> class (specifically <code>bind</code>,
13  * <code>rebind</code>, and <code>unbind</code>) and methods of the
14  * <code>java.rmi.activation.ActivationSystem</code> interface to
15  * indicate that the caller does not have permission to perform the action
16  * requested by the method call. If the method was invoked from a non-local
17  * host, then an <code>AccessException</code> is thrown.
18  *
19  * @version 1.12, 12/19/03
20  * @author Ann Wollrath
21  * @author Roger Riggs
22  * @since JDK1.1
23  * @see java.rmi.Naming
24  * @see java.rmi.activation.ActivationSystem
25  */

26 public class AccessException extends java.rmi.RemoteException JavaDoc {
27
28     /* indicate compatibility with JDK 1.1.x version of class */
29      private static final long serialVersionUID = 6314925228044966088L;
30
31     /**
32      * Constructs an <code>AccessException</code> with the specified
33      * detail message.
34      *
35      * @param s the detail message
36      * @since JDK1.1
37      */

38     public AccessException(String JavaDoc s) {
39     super(s);
40     }
41
42     /**
43      * Constructs an <code>AccessException</code> with the specified
44      * detail message and nested exception.
45      *
46      * @param s the detail message
47      * @param ex the nested exception
48      * @since JDK1.1
49      */

50     public AccessException(String JavaDoc s, Exception JavaDoc ex) {
51     super(s, ex);
52     }
53 }
54
Popular Tags