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