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