java.io

Class IOException

Implemented Interfaces:
Serializable
Known Direct Subclasses:
BadPasswordException, ChangedCharSetException, CharacterCodingException, CharConversionException, ClosedChannelException, CopyStreamException, CorruptIndexException, DirectoryWalker.CancelException, EOFException, FileItemStream.ItemSkippedException, FileLockInterruptionException, FileNotFoundException, FileSystemException, FileUploadBase.FileUploadIOException, FTPConnectionClosedException, HttpException, HttpRetryException, IIOException, InterruptedIOException, InvalidPropertiesFormatException, IOExceptionWithCause, JMXProviderException, JMXServerErrorException, LittleEndian.BufferUnderrunException, LockObtainFailedException, LockReleaseFailedException, MalformedServerReplyException, MalformedURLException, MergePolicy.MergeAbortedException, MultipartStream.IllegalBoundaryException, MultipartStream.MalformedStreamException, NestedIOException, NNTPConnectionClosedException, NoHttpResponseException, ObjectStreamException, ProtocolException, RemoteException, SaslException, SMTPConnectionClosedException, SocketException, StaleReaderException, SyncFailedException, TooManyBasicQueries, UnknownHostException, UnknownServiceException, UnsupportedEncodingException, URI.MalformedURIException, UTFDataFormatException, XmlReaderException, ZipException

public class IOException
extends 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, OutputStream, Serialized Form

Constructor Summary

IOException()
Constructs an IOException with null as its error detail message.
IOException(String s)
Constructs an IOException with the specified detail message.

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

IOException

public IOException()
Constructs an IOException with null as its error detail message.
Usages and Demos :

View More Examples of IOException()
   1:             } catch (ProtocolException e) {
   2:                 throw (IOException) new IOException().initCause(e);
   3:             }
   4:         }

View Full Code Here
   1:             one(pushEndpointFactory).createPushEndpoint(with(any(String.class)));
   2:             will(throwException(new IOException()));
   3:         }});
   4:         uploader.setPushEndpoint(null);
   5:         

View Full Code Here
   1:       else
   2:         throw (IOException) new IOException().initCause(ex);
   3:     }
   4:     
   5:     return null;

View Full Code Here
   1:     } catch (Exception ex) {
   2:         throw (new java.io.IOException());
   3:       }
   4:     inBaStream.close();
   5:     outBaStream.close();

View Full Code Here
   1:                 } catch (Exception e) {
   2:                     throw (IOException) (new IOException()).initCause(e);
   3:                 }
   4:             }
   5:     }

View Full Code Here

IOException

public IOException(String s)
Constructs an IOException with the specified detail message. The error message string s can later be retrieved by the Throwable.getMessage() method of class java.lang.Throwable.
Parameters:
s - the detail message.
Usages and Demos :

View More Examples of IOException(String s)
   1:         try {
   2:             throw new IOException("");
   3:     }
   4: }

View Full Code Here
   1:       if(completed<=0){
   2:     throw new IOException("");
   3:       }
   4:       begin+=completed;
   5:       length-=completed;

View Full Code Here
   1:             if (!base.getProtocol().equals("http")) {
   2:               throw new IOException("'" + base.getProtocol() + "' protocol not supported.\n " +
   3:               "Must be talking to AkentiServer via http.");
   4:             }
   5:             

View Full Code Here
   1:                 catch (Exception e) {
   2:                     onException(new IOException("" + e));
   3:                 }
   4:             }

View Full Code Here
   1:                 catch (Exception e) {
   2:                     onException(new IOException("" + e));
   3:                 }
   4:             }

View Full Code Here