1. /*
  2. * @(#)SocketException.java 1.12 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.net;
  8. import java.io.IOException;
  9. /**
  10. * Thrown to indicate that there is an error in the underlying
  11. * protocol, such as a TCP error.
  12. *
  13. * @author Jonathan Payne
  14. * @version 1.12, 11/29/01
  15. * @since JDK1.0
  16. */
  17. public
  18. class SocketException extends IOException {
  19. /**
  20. * Constructs a new <code>ProtocolException</code> with the
  21. * specified detail message.
  22. *
  23. * @param host the detail message.
  24. */
  25. public SocketException(String msg) {
  26. super(msg);
  27. }
  28. /**
  29. * Constructs a new <code>ProtocolException</code> with no detail message.
  30. */
  31. public SocketException() {
  32. }
  33. }