java.io
Class IOException

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable 
      extended by java.lang.Exception sample code for java.lang.Exception definition code for java.lang.Exception 
          extended by java.io.IOException
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable
Direct Known Subclasses:
ChangedCharSetException sample code for javax.swing.text.ChangedCharSetException definition code for javax.swing.text.ChangedCharSetException , CharacterCodingException sample code for java.nio.charset.CharacterCodingException definition code for java.nio.charset.CharacterCodingException , CharConversionException sample code for java.io.CharConversionException definition code for java.io.CharConversionException , ClosedChannelException sample code for java.nio.channels.ClosedChannelException definition code for java.nio.channels.ClosedChannelException , EOFException sample code for java.io.EOFException definition code for java.io.EOFException , FileLockInterruptionException sample code for java.nio.channels.FileLockInterruptionException definition code for java.nio.channels.FileLockInterruptionException , FileNotFoundException sample code for java.io.FileNotFoundException definition code for java.io.FileNotFoundException , HttpRetryException sample code for java.net.HttpRetryException definition code for java.net.HttpRetryException , IIOException sample code for javax.imageio.IIOException definition code for javax.imageio.IIOException , InterruptedIOException sample code for java.io.InterruptedIOException definition code for java.io.InterruptedIOException , InvalidPropertiesFormatException sample code for java.util.InvalidPropertiesFormatException definition code for java.util.InvalidPropertiesFormatException , JMXProviderException sample code for javax.management.remote.JMXProviderException definition code for javax.management.remote.JMXProviderException , JMXServerErrorException sample code for javax.management.remote.JMXServerErrorException definition code for javax.management.remote.JMXServerErrorException , MalformedURLException sample code for java.net.MalformedURLException definition code for java.net.MalformedURLException , ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException , ProtocolException sample code for java.net.ProtocolException definition code for java.net.ProtocolException , RemoteException sample code for java.rmi.RemoteException definition code for java.rmi.RemoteException , SaslException sample code for javax.security.sasl.SaslException definition code for javax.security.sasl.SaslException , SocketException sample code for java.net.SocketException definition code for java.net.SocketException , SyncFailedException sample code for java.io.SyncFailedException definition code for java.io.SyncFailedException , UnknownHostException sample code for java.net.UnknownHostException definition code for java.net.UnknownHostException , UnknownServiceException sample code for java.net.UnknownServiceException definition code for java.net.UnknownServiceException , UnsupportedEncodingException sample code for java.io.UnsupportedEncodingException definition code for java.io.UnsupportedEncodingException , UTFDataFormatException sample code for java.io.UTFDataFormatException definition code for java.io.UTFDataFormatException , ZipException sample code for java.util.zip.ZipException definition code for java.util.zip.ZipException

public class IOException
extends Exception sample code for java.lang.Exception definition code for java.lang.Exception

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.

Since:
JDK1.0
See Also:
InputStream sample code for java.io.InputStream definition code for java.io.InputStream , OutputStream sample code for java.io.OutputStream definition code for java.io.OutputStream , Serialized Form

Constructor Summary
IOException sample code for java.io.IOException.IOException() definition code for java.io.IOException.IOException() ()
          Constructs an IOException with null as its error detail message.
IOException sample code for java.io.IOException.IOException(java.lang.String) definition code for java.io.IOException.IOException(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  s)
          Constructs an IOException with the specified detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable
fillInStackTrace sample code for java.lang.Throwable.fillInStackTrace() definition code for java.lang.Throwable.fillInStackTrace() , getCause sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() , getLocalizedMessage sample code for java.lang.Throwable.getLocalizedMessage() definition code for java.lang.Throwable.getLocalizedMessage() , getMessage sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() , getStackTrace sample code for java.lang.Throwable.getStackTrace() definition code for java.lang.Throwable.getStackTrace() , initCause sample code for java.lang.Throwable.initCause(java.lang.Throwable) definition code for java.lang.Throwable.initCause(java.lang.Throwable) , printStackTrace sample code for java.lang.Throwable.printStackTrace() definition code for java.lang.Throwable.printStackTrace() , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintStream) definition code for java.lang.Throwable.printStackTrace(java.io.PrintStream) , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) definition code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) , setStackTrace sample code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) definition code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) , toString sample code for java.lang.Throwable.toString() definition code for java.lang.Throwable.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

IOException sample code for java.io.IOException() definition code for java.io.IOException()

public IOException()
Constructs an IOException with null as its error detail message.


IOException sample code for java.io.IOException(java.lang.String) definition code for java.io.IOException(java.lang.String)

public IOException(String sample code for java.lang.String definition code for java.lang.String  s)
Constructs an IOException with the specified detail message. The error message string s can later be retrieved by the Throwable.getMessage() sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() method of class java.lang.Throwable.

Parameters:
s - the detail message.