1. /*
  2. * @(#)BindException.java 1.10 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.net;
  11. /**
  12. * Signals that an error occurred while attempting to bind a
  13. * socket to a local address and port. Typically, the port is
  14. * in use, or the requested local address could not be assigned.
  15. *
  16. * @since JDK1.1
  17. */
  18. public class BindException extends SocketException {
  19. /**
  20. * Constructs a new BindException with the specified detail
  21. * message as to why the bind error occurred.
  22. * A detail message is a String that gives a specific
  23. * description of this error.
  24. * @param msg the detail message
  25. */
  26. public BindException(String msg) {
  27. super(msg);
  28. }
  29. /**
  30. * Construct a new BindException with no detailed message.
  31. */
  32. public BindException() {}
  33. }