1. /*
  2. * @(#)BindException.java 1.13 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.net;
  8. /**
  9. * Signals that an error occurred while attempting to bind a
  10. * socket to a local address and port. Typically, the port is
  11. * in use, or the requested local address could not be assigned.
  12. *
  13. * @since JDK1.1
  14. */
  15. public class BindException extends SocketException {
  16. /**
  17. * Constructs a new BindException with the specified detail
  18. * message as to why the bind error occurred.
  19. * A detail message is a String that gives a specific
  20. * description of this error.
  21. * @param msg the detail message
  22. */
  23. public BindException(String msg) {
  24. super(msg);
  25. }
  26. /**
  27. * Construct a new BindException with no detailed message.
  28. */
  29. public BindException() {}
  30. }