Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

IOException

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public IOException ()

Added in API level 1

Constructs a new IOException with its stack trace filled in.

public IOException ( String detailMessage)

Added in API level 1

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

Parameters
detailMessage the detail message for this exception.

public IOException ( String message, Throwable cause)

Added in API level 9

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

Parameters
message The detail message for the exception.
cause The detail cause for the exception.

public IOException ( Throwable cause)

Added in API level 9

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

Parameters
cause The detail cause for the exception.