1. /*
  2. * @(#)IOException.java 1.21 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.io;
  8. /**
  9. * Signals that an I/O exception of some sort has occurred. This
  10. * class is the general class of exceptions produced by failed or
  11. * interrupted I/O operations.
  12. *
  13. * @author unascribed
  14. * @version 1.21, 01/23/03
  15. * @see java.io.InputStream
  16. * @see java.io.OutputStream
  17. * @since JDK1.0
  18. */
  19. public
  20. class IOException extends Exception {
  21. /**
  22. * Constructs an <code>IOException</code> with <code>null</code>
  23. * as its error detail message.
  24. */
  25. public IOException() {
  26. super();
  27. }
  28. /**
  29. * Constructs an <code>IOException</code> with the specified detail
  30. * message. The error message string <code>s</code> can later be
  31. * retrieved by the <code>{@link java.lang.Throwable#getMessage}</code>
  32. * method of class <code>java.lang.Throwable</code>.
  33. *
  34. * @param s the detail message.
  35. */
  36. public IOException(String s) {
  37. super(s);
  38. }
  39. }