1. /*
  2. * @(#)ProtocolException.java 1.16 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. 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 Chris Warth
  14. * @version 1.16, 12/19/03
  15. * @since JDK1.0
  16. */
  17. public
  18. class ProtocolException 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 ProtocolException(String host) {
  26. super(host);
  27. }
  28. /**
  29. * Constructs a new <code>ProtocolException</code> with no detail message.
  30. */
  31. public ProtocolException() {
  32. }
  33. }