The class IOException is the general class of exceptions produced by failed or
interrupted input/output operations. Subclasses of IOException include:
EOFExceptionFileNotFoundExceptionInterruptedIOExceptionUTFDataFormatExceptionpublic classIOExceptionextends Exception { publicIOException(); publicIOException(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).