Re: [Htmlparser-user] Not able to catch ParserException
Brought to you by:
derrickoswald
From: Martin S. <mst...@gm...> - 2007-01-11 14:26:55
|
Hi, It is indeed strange and I think it should be filed as a bug if you are sur= e it isn't a problem with your code. When I was reading the FAQ of the projec= t this morning (here), my eye catches the following question: http://htmlparser.sourceforge.net/faq.html#quiet It seems a bit related to your problem. What version of the HTMLParser are you using? (I forgot to ask that questio= n earlier). -- Martin 2007/1/11, =D8ystein Lervik Larsen <oys...@me...>: > > Hi, > > > The only thing I can think of is that your logger is printing the > > exception to standard out or something (you are passing the exception t= o > > the error method). Does the problem occur when you comment out the > > logger.error ("Could not parse url", e); ? > > The exception is written to the console even though I'm not using any > try/catch. > > StringBean sb; > sb =3D new StringBean (); > sb.setLinks(false); > sb.setURL(url); > content =3D sb.getStrings(); > return content; > > > Weird... thanks for your time though! > > -=D8ystein > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > |