• JDK
  • >
  • jdk/openjdk
  • >
  • 6-b14
  • >
  • java.io.IOException
  /*
   * Copyright 1994-2006 Sun Microsystems, Inc.  All Rights Reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Sun designates this
   * particular file as subject to the "Classpath" exception as provided
   * by Sun in the LICENSE file that accompanied this code.
  *
  * This code is distributed in the hope that it will be useful, but WITHOUT
  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  * version 2 for more details (a copy is included in the LICENSE file that
  * accompanied this code).
  *
  * You should have received a copy of the GNU General Public License version
  * 2 along with this work; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  *
  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  * CA 95054 USA or visit www.sun.com if you need additional information or
  * have any questions.
  */
 
 package java.io;

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.

Author(s):
unascribed
Since:
JDK1.0
See also:
InputStream
OutputStream
 
 public
 class IOException extends Exception {
     static final long serialVersionUID = 7818375828146090155L;

    
Constructs an IOException with null as its error detail message.
 
     public IOException() {
         super();
     }

    
Constructs an IOException with the specified detail message.

Parameters:
message The detail message (which is saved for later retrieval by the java.lang.Throwable.getMessage() method)
 
     public IOException(String message) {
         super(message);
     }

    
Constructs an IOException with the specified detail message and cause.

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

Parameters:
message The detail message (which is saved for later retrieval by the java.lang.Throwable.getMessage() method)
cause The cause (which is saved for later retrieval by the java.lang.Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.6
 
     public IOException(String messageThrowable cause) {
         super(messagecause);
     }

    
Constructs an IOException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of 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 java.lang.Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.6
 
     public IOException(Throwable cause) {
         super(cause);
    }
New to GrepCode? Check out our FAQ X