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).