Home » openjdk-7 » java » io » [javadoc | source]
java.io
public class: IOException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.io.IOException

All Implemented Interfaces:
    Serializable

Signals that an I/O exception of some sort has occurred. This class is the general class of exceptions produced by failed or interrupted I/O operations.
Field Summary
static final  long serialVersionUID     
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public IOException() 
 public IOException(String message) 
    Constructs an {@code IOException} with the specified detail message.
    Parameters:
    message - The detail message (which is saved for later retrieval by the #getMessage() method)
 public IOException(Throwable cause) 
    Constructs an {@code IOException} with the specified cause and a detail message of {@code (cause==null ? null : cause.toString())} (which typically contains the class and detail message of {@code cause}). This constructor is useful for IO exceptions that are little more than wrappers for other throwables.
    Parameters:
    cause - The cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    since: 1.6 -
 public IOException(String message,
    Throwable cause) 
    Constructs an {@code IOException} with the specified detail message and cause.

    Note that the detail message associated with {@code cause} is not automatically incorporated into this exception's detail message.

    Parameters:
    message - The detail message (which is saved for later retrieval by the #getMessage() method)
    cause - The cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    since: 1.6 -
Methods from java.lang.Throwable:
addSuppressed,   fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   getStackTraceDepth,   getStackTraceElement,   getSuppressed,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait