Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » IOException(Input/Output operation fails)
IOException [message #1805842] Thu, 25 April 2019 09:29 Go to next message
Ella Jones is currently offline Ella JonesFriend
Messages: 1
Registered: April 2019
Junior Member
A method throws an IOException or a direct subclass of it when any Input/Output operation fails.

Typical uses of these I/O operations include:

Working with the file system or data streams using java.io package
Creating network applications using java.net package
FileNotFoundException

FileNotFoundException is a common type of IOException while working with the file system:

1
2
3
4
5
try {
new FileReader(new File("/invalid/file/location"));
} catch (FileNotFoundException e) {
LOGGER.info("FileNotFoundException caught!");
}
MalformedURLException

When working with URLs, we might encounter with MalformedURLException if our URLs are invalid.

1
2
3
4
5
try {
new URL("malformedurl");
} catch (MalformedURLException e) {
LOGGER.error("MalformedURLException caught!");
}
Re: IOException [message #1806321 is a reply to message #1805842] Tue, 07 May 2019 17:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
This posting (your first one) looks like a bogus question-free posting that likely will subsequently be modified to add SPAM links. But when that happens, the thread will be deleted, so don't bother.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Issues updating Eclipse | 2018-12 → 2019-03
Next Topic:Java development tools
Goto Forum:
  


Current Time: Wed Jan 15 06:33:58 GMT 2025

Powered by FUDForum. Page generated in 0.02922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top