1. /*
  2. * @(#)SocketException.java 1.14 00/02/02
  3. *
  4. * Copyright 1995-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. import java.io.IOException;
  12. /**
  13. * Thrown to indicate that there is an error in the underlying
  14. * protocol, such as a TCP error.
  15. *
  16. * @author Jonathan Payne
  17. * @version 1.14, 02/02/00
  18. * @since JDK1.0
  19. */
  20. public
  21. class SocketException extends IOException {
  22. /**
  23. * Constructs a new <code>SocketException</code> with the
  24. * specified detail message.
  25. *
  26. * @param msg the detail message.
  27. */
  28. public SocketException(String msg) {
  29. super(msg);
  30. }
  31. /**
  32. * Constructs a new <code>SocketException</code> with no detail message.
  33. */
  34. public SocketException() {
  35. }
  36. }