| Author |
Types of errors when receiving IOException
|
Castor Tack
Ranch Hand
Joined: Dec 06, 2010
Posts: 31
|
|
Hi there:
I know that IOException is a general exception. I'm getting one. What types of errors does the IOException class cover?
For example: when I get FileNotFoundException, I know the file doesn't exit because that's the type of error the class covers.
Thanks
|
The BEST user interface design I've ever seen? --- A flush toilet.
|
 |
Greg Brannon
Bartender
Joined: Oct 24, 2010
Posts: 530
|
|
|
It means that you've had an Input/Output error. Either your program couldn't read from something or write to something that you programed it to read from or write to. There are a variety of reasons this might have occurred. Show us some code if you want more help.
|
Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12911
|
|
Did you have a look at the API documentation of IOException? It says:
API documentation wrote: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.
And there's a long list of subclasses, that are used for many different kinds of exceptions that might happen when doing I/O:
API documentation wrote:Direct Known Subclasses:
ChangedCharSetException, CharacterCodingException, CharConversionException, ClosedChannelException, EOFException, FileLockInterruptionException, FileNotFoundException, FilerException, HttpRetryException, IIOException, InterruptedIOException, InvalidPropertiesFormatException, JMXProviderException, JMXServerErrorException, MalformedURLException, ObjectStreamException, ProtocolException, RemoteException, SaslException, SocketException, SSLException, SyncFailedException, UnknownHostException, UnknownServiceException, UnsupportedDataTypeException, UnsupportedEncodingException, UTFDataFormatException, ZipException
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
 |
|
|
subject: Types of errors when receiving IOException
|
|
|