1. /*
  2. * @(#)SocketSecurityException.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.rmi.server;
  8. /**
  9. * A <code>SocketSecurityException</code> is thrown during remote object
  10. * export if the code exporting the remote object (either by construction
  11. * or by explicit call to the <code>exportObject</code> method of
  12. * <code>UnicastRemoteObject</code> or
  13. * <code>java.rmi.activation.Activatable</code>) does not have permission
  14. * to create a <code>java.net.ServerSocket</code> on the port number
  15. * specified during remote object export.
  16. *
  17. * @version 1.8, 11/29/01
  18. * @author Ann Wollrath
  19. * @since JDK1.1
  20. * @see java.rmi.server.UnicastRemoteObject
  21. * @see java.rmi.activation.Activatable
  22. */
  23. public class SocketSecurityException extends ExportException {
  24. /* indicate compatibility with JDK 1.1.x version of class */
  25. private static final long serialVersionUID = -7622072999407781979L;
  26. /**
  27. * Constructs an <code>SocketSecurityException</code> with the specified
  28. * detail message.
  29. *
  30. * @param s the detail message.
  31. * @since JDK1.1
  32. */
  33. public SocketSecurityException(String s) {
  34. super(s);
  35. }
  36. /**
  37. * Constructs an <code>SocketSecurityException</code> with the specified
  38. * detail message and nested exception.
  39. *
  40. * @param s the detail message.
  41. * @param ex the nested exception
  42. * @since JDK1.1
  43. */
  44. public SocketSecurityException(String s, Exception ex) {
  45. super(s, ex);
  46. }
  47. }