JBuilder 7 error:  catch

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-03-31
I am getting this error in my code for catch;

      SAXParserFactory spf =SAXParserFactory.newInstance
      SAXParser parser = spf.newSAXParser();
      XMLReader r = parser.getXMLReader();
 catch(IOException e) {

The exception can never be thrown in the corresponding try block.
Question by:kaushalshah
1 Comment

Accepted Solution

yongsing earned 200 total points
ID: 8023655
You are trying to catch an exception (IOException) that can never be thrown. Change IOException to Exception.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question