Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 14th, 2012, 07:53 PM
Authorized User
Join Date: Dec 2011
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
Default IOException trouble

If you call on a method that has an IOException, do you have to handle that in the method that is calling the method as well? i get an error: "Unhandled exception type IOException" when calling on a method that has an IOException.

here is some of my code:

public void processRequest(String command) {
			command = command.toUpperCase();
			switch (command) {
			case "L":
				listTask(); <<< "Unhandled exception type IOException"
				//System.out.print("Now Listing tasks...");
		public void listTask() throws IOException {
			gui setStatus = new gui();
			setStatus.setCurStatus(1, "Now listing all tasks");
Old April 10th, 2014, 12:28 PM
Registered User
Join Date: Apr 2014
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post

Whenever any kind of action throwns any kind of Exception you must insert that action between a "try catch".

Here's how to use it, cheers ;)

Old June 5th, 2014, 07:51 AM
Registered User
Join Date: Jun 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I offers you can also try some thing different according your needs that is Cert4Prep.which gave you complete information about Java Certification.

Cert4Prep Latest Certification

Java Certifications
Old December 6th, 2014, 03:59 AM
Registered User
Join Date: Dec 2014
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Could you post the full stack trace for that error?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where Am I: geocode IOException smallbug BOOK: Professional Android 2 Application Development 1 April 5th, 2010 08:27 PM
If Else Trouble Cibressus Beginning PHP 0 May 1st, 2007 02:04 PM
Please i have had a Trouble hurted Wrox Book Feedback 1 June 28th, 2004 02:18 AM
trouble databass Classic ASP Databases 2 August 16th, 2003 10:27 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.