Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem deriving SAXException

 
Siddhartha Azad
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am having a strange problem I need to derive a class from SAXException. When I do so, or even when I do a
"throw new SAXException()", the compiler says:

.java:30: cannot resolve symbol
[javac] symbol : constructor SAXException ()
[javac] location: class org.xml.sax.SAXException
[javac] throw new SAXException();

I don't understand since I am having no problem using XMLReader and SAXParser classes and SAX is even parsing my XML. Then why can't I find the SAXException class. (Running jdk1.4.2 using TOMCAT).
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that all of the constructors for SAXException require something as a parameter -- your code seems to call a constructor with no parameters...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic