1. /*
  2. * @(#)NoRouteToHostException.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 connect a
  13. * socket to a remote address and port. Typically, the remote
  14. * host cannot be reached because of an intervening firewall, or
  15. * if an intermediate router is down.
  16. *
  17. * @since JDK1.1
  18. */
  19. public class NoRouteToHostException extends SocketException {
  20. /**
  21. * Constructs a new NoRouteToHostException with the specified detail
  22. * message as to why the remote host cannot be reached.
  23. * A detail message is a String that gives a specific
  24. * description of this error.
  25. * @param msg the detail message
  26. */
  27. public NoRouteToHostException(String msg) {
  28. super(msg);
  29. }
  30. /**
  31. * Construct a new NoRouteToHostException with no detailed message.
  32. */
  33. public NoRouteToHostException() {}
  34. }