home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / java / rmi / AccessException.java next >
Encoding:
Java Source  |  1999-05-28  |  1.9 KB  |  61 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)AccessException.java    1.7 98/09/21
  3.  *
  4.  * Copyright 1996-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.rmi;
  16.  
  17. /**
  18.  * An <code>AccessException</code> is thrown by certain methods of the
  19.  * <code>java.rmi.Naming</code> class (specifically <code>bind</code>,
  20.  * <code>rebind</code>, and <code>unbind</code>) and methods of the
  21.  * <code>java.rmi.activation.ActivationSystem</code> interface to
  22.  * indicate that the caller does not have permission to perform the action
  23.  * requested by the method call.  If the method was invoked from a non-local
  24.  * host, then an <code>AccessException</code> is thrown.
  25.  * 
  26.  * @version 1.7, 09/21/98
  27.  * @author  Ann Wollrath
  28.  * @author  Roger Riggs
  29.  * @since   JDK1.1
  30.  * @see     java.rmi.Naming
  31.  * @see     java.rmi.activation.ActivationSystem
  32.  */
  33. public class AccessException extends java.rmi.RemoteException {
  34.  
  35.     /* indicate compatibility with JDK 1.1.x version of class */
  36.      private static final long serialVersionUID = 6314925228044966088L;
  37.  
  38.     /**
  39.      * Constructs an <code>AccessException</code> with the specified
  40.      * detail message.
  41.      *
  42.      * @param s the detail message
  43.      * @since JDK1.1
  44.      */
  45.     public AccessException(String s) {
  46.     super(s);
  47.     }
  48.  
  49.     /**
  50.      * Constructs an <code>AccessException</code> with the specified
  51.      * detail message and nested exception.
  52.      *
  53.      * @param s the detail message
  54.      * @param ex the nested exception
  55.      * @since JDK1.1
  56.      */
  57.     public AccessException(String s, Exception ex) {
  58.     super(s, ex);
  59.     }
  60. }
  61.