java.io
Class IOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- Direct Known Subclasses:
- UnsupportedEncodingException
public class IOException extends Exception
Signals a general, I/O-related error. Error details may be specified when calling the constructor, as usual. Note there are also several subclasses of this class for more specific error situations, such asFileNotFoundException
orEOFException
.
-
-
Constructor Summary
Constructors Constructor and Description IOException()
Constructs a newIOException
with its stack trace filled in.IOException(String detailMessage)
Constructs a newIOException
with its stack trace and detail message filled in.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, getStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
IOException
public IOException()
Constructs a newIOException
with its stack trace filled in.
-
IOException
public IOException(String detailMessage)
Constructs a newIOException
with its stack trace and detail message filled in.- Parameters:
detailMessage
- the detail message for this exception.
-
-