CHAPTER 22: The Package java.io Previous
Previous
Java Language
Java Language
Index
Index
Next
Next

22.27 The Class java.io.IOException

22.27.1 IOException , 22.27.2 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 IOException

public IOException()

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


22.27.2 IOException

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 (S20.22.3).

© 1996 Sun Microsystems, Inc. All rights reserved.