1. /*
  2. * @(#)SocketTimeoutException.java 1.5 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 a timeout has occurred on a socket read or accept.
  10. *
  11. * @since 1.4
  12. */
  13. public class SocketTimeoutException extends java.io.InterruptedIOException {
  14. /**
  15. * Constructs a new SocketTimeoutException with a detail
  16. * message.
  17. * @param msg the detail message
  18. */
  19. public SocketTimeoutException(String msg) {
  20. super(msg);
  21. }
  22. /**
  23. * Construct a new SocketTimeoutException with no detailed message.
  24. */
  25. public SocketTimeoutException() {}
  26. }