[Chapter 11] IOException
Author: Mark Grand and Jonathan Knudsen
Date: Fri Aug 8 16:38:02 1997

#

| Chapter 11 The java.io Package |

# IOException

## Name

IOException

## Synopsis

Class Name:

  `java.io.IOException`

Superclass:

  `java.lang.Exception`

Immediate Subclasses:

  `java.io.CharConversionException`,

  `java.io.EOFException`,

  `java.io.FileNotFoundException`,

  `java.io.InterruptedIOException`,

  `java.io.ObjectStreamException`,

  `java.io.SyncFailedException`,

  `java.io.UnsupportedEncodingException`,

  `java.io.UTFDataFormatException`,

  `java.net.MalformedURLException`,

  `java.net.ProtocolException`,

  `java.net.SocketException`,

  `java.net.UnknownHostException`,

  `java.net.UnknownServiceException`,

  `java.util.zip.ZipException`

Interfaces Implemented:

  None

Availability:

  JDK 1.0 or later

## Description

The `IOException` class is the superclass for all of the exceptions that represent anything that can go wrong with input or output.

## Class Summary

    public class java.io.IOException extends java.lang.Exception {
      // Constructors
      public IOException();
      public IOException(String s);
    }

## Constructors

### IOException

#### public IOException()

Description

  This constructor creates an `IOException` with no detail message.

#### public IOException(String s)

Parameters

  `s`

    The detail message.

Description

  This constructor creates an `IOException` with the specified detail message.

## Inherited Methods

Method | Inherited From | Method | Inherited From
--- | --- | --- | ---
`clone()` | `Object` | `equals(Object)` | `Object`
`fillInStackTrace()` | `Throwable` | `finalize()` | `Object`
`getClass()` | `Object` | `getLocalizedMessage()` | `Throwable`
`getMessage()` | `Throwable` | `hashCode()` | `Object`
`notify()` | `Object` | `notifyAll()` | `Object`
`printStackTrace()` | `Throwable` | `printStackTrace(PrintStream)` | `Throwable`
`printStackTrace(PrintWriter)` | `Throwable` | `toString()` | `Object`
`wait()` | `Object` | `wait(long)` | `Object`
`wait(long, int)` | `Object` |  |

## See Also

`CharConversionException`, `EOFException`, `Exception`, `FileNotFoundException`, `InterruptedException`, `MalformedURLException`, `ObjectStreamException`, `ProtocolException`, `SocketException`, `SyncFailedException`, `Throwable`, `UnknownHostException`, `UnknownServiceException`, `UnsupportedEncodingException`, `UTFDataFormatException`, `ZipException`

InvalidObjectException |  | LineNumberInputStream