Contents | Prev | Next | Index

22.27 The Class java.io.IOException

The class IOException is the general class of exceptions produced by failed or interrupted input/output operations. Subclasses of IOException include:


EOFException
FileNotFoundException
InterruptedIOException
UTFDataFormatException
public class IOException extends Exception {
	public IOException();
	public IOException(String s);
}

22.27.1 public IOException()

This constructor initializes a newly created IOException with null as its error message string.

22.27.2 public IOException(String s)

This constructor initializes a newly created IOException by saving a reference to the error message string s for later retrieval by the getMessage method (§20.22.3).


Contents | Prev | Next | Index

Java Language Specification (HTML generated by Suzette Pelouch on February 24, 1998)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to [email protected]