1. /*
  2. * @(#)AccessException.java 1.9 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.rmi;
  11. /**
  12. * An <code>AccessException</code> is thrown by certain methods of the
  13. * <code>java.rmi.Naming</code> class (specifically <code>bind</code>,
  14. * <code>rebind</code>, and <code>unbind</code>) and methods of the
  15. * <code>java.rmi.activation.ActivationSystem</code> interface to
  16. * indicate that the caller does not have permission to perform the action
  17. * requested by the method call. If the method was invoked from a non-local
  18. * host, then an <code>AccessException</code> is thrown.
  19. *
  20. * @version 1.9, 02/02/00
  21. * @author Ann Wollrath
  22. * @author Roger Riggs
  23. * @since JDK1.1
  24. * @see java.rmi.Naming
  25. * @see java.rmi.activation.ActivationSystem
  26. */
  27. public class AccessException extends java.rmi.RemoteException {
  28. /* indicate compatibility with JDK 1.1.x version of class */
  29. private static final long serialVersionUID = 6314925228044966088L;
  30. /**
  31. * Constructs an <code>AccessException</code> with the specified
  32. * detail message.
  33. *
  34. * @param s the detail message
  35. * @since JDK1.1
  36. */
  37. public AccessException(String s) {
  38. super(s);
  39. }
  40. /**
  41. * Constructs an <code>AccessException</code> with the specified
  42. * detail message and nested exception.
  43. *
  44. * @param s the detail message
  45. * @param ex the nested exception
  46. * @since JDK1.1
  47. */
  48. public AccessException(String s, Exception ex) {
  49. super(s, ex);
  50. }
  51. }