aspose file tools
The moose likes Beginning Java and the fly likes Types of errors when receiving IOException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Types of errors when receiving IOException" Watch "Types of errors when receiving IOException" New topic
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
    
    3

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:


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Types of errors when receiving IOException
 
Similar Threads
DBMain database interface & RemoteException
Error reading a file
Generics
Incompatible types error
question about inheritance