Skip to content

Most visited

Recently visited

navigation
Added in API level 1

IOException

public class IOException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
Known Direct Subclasses
Known Indirect Subclasses


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 as FileNotFoundException or EOFException.

Summary

Public constructors

IOException()

Constructs a new IOException with its stack trace filled in.

IOException(String detailMessage)

Constructs a new IOException with its stack trace and detail message filled in.

IOException(String message, Throwable cause)

Constructs a new instance of this class with detail message and cause filled in.

IOException(Throwable cause)

Constructs a new instance of this class with its detail cause filled in.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

IOException

Added in API level 1
IOException ()

Constructs a new IOException with its stack trace filled in.

IOException

Added in API level 1
IOException (String detailMessage)

Constructs a new IOException with its stack trace and detail message filled in.

Parameters
detailMessage String: the detail message for this exception.

IOException

Added in API level 9
IOException (String message, 
                Throwable cause)

Constructs a new instance of this class with detail message and cause filled in.

Parameters
message String: The detail message for the exception.
cause Throwable: The detail cause for the exception.

IOException

Added in API level 9
IOException (Throwable cause)

Constructs a new instance of this class with its detail cause filled in.

Parameters
cause Throwable: The detail cause for the exception.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.