• Post Reply Bookmark Topic Watch Topic
  • New Topic

catching exceptions -- tutorial trouble  RSS feed

 
Jeff Pollet
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody.

I'm slowly working my way through Sun's XML tutorial, and, while it's a pretty good tutorial, I'm finding some problems in the sample code, and I'm way too much of a newbie to know if I'm understanding the problems or not, so I have a question for y'all.

When I compiled the code that contained the following snippet, it wouldn't compile:



gave the following compiler errors:


If I change the code to this:


...then everything works just fine. Seems silly to ask, since it seems to be working, but what does everybody think? Is this the way to fix this bit of code?

I'd appreciate any comments. Thanks!

--Jeff
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like it. "spe" is obviously initials for SaxParseException; somebody may have thought better of that and changed all the instances but one.
 
Jeff Pollet
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your vote o' confidence, Ernest. I appreciate the help.

(Also looks like I need to better understand UBB Code, if I'm going to use it on these posts!)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!