1. /*
  2. * @(#)SocketSecurityException.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.server;
  11. /**
  12. * A <code>SocketSecurityException</code> is thrown during remote object
  13. * export if the code exporting the remote object (either by construction
  14. * or by explicit call to the <code>exportObject</code> method of
  15. * <code>UnicastRemoteObject</code> or
  16. * <code>java.rmi.activation.Activatable</code>) does not have permission
  17. * to create a <code>java.net.ServerSocket</code> on the port number
  18. * specified during remote object export.
  19. *
  20. * @version 1.9, 02/02/00
  21. * @author Ann Wollrath
  22. * @since JDK1.1
  23. * @see java.rmi.server.UnicastRemoteObject
  24. * @see java.rmi.activation.Activatable
  25. */
  26. public class SocketSecurityException extends ExportException {
  27. /* indicate compatibility with JDK 1.1.x version of class */
  28. private static final long serialVersionUID = -7622072999407781979L;
  29. /**
  30. * Constructs an <code>SocketSecurityException</code> with the specified
  31. * detail message.
  32. *
  33. * @param s the detail message.
  34. * @since JDK1.1
  35. */
  36. public SocketSecurityException(String s) {
  37. super(s);
  38. }
  39. /**
  40. * Constructs an <code>SocketSecurityException</code> with the specified
  41. * detail message and nested exception.
  42. *
  43. * @param s the detail message.
  44. * @param ex the nested exception
  45. * @since JDK1.1
  46. */
  47. public SocketSecurityException(String s, Exception ex) {
  48. super(s, ex);
  49. }
  50. }