This is probably a more low level error handle question:
The following code is used to get the contents of multiple url's, however when the server returns a 500 response code the program exits:
So my question is how do you contine / handle the 500 exception more gracefully ?
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://www.some.url at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:691)
at java.net.URL.openStream(URL.java:955)
at com.jm.utils.UrlReader.<init>(UrlReader.java:36)
at com.jm.prj.webgrab.ex01.WebGrabEX01.grab(WebGrabEX01.java:42)
at com.jm.prj.webgrab.ex01.WebGrabEX01.main(WebGrabEX01.java:29)
[ October 08, 2002: Message edited by: Mark Nicholas ]
[ October 08, 2002: Message edited by: Mark Nicholas ]
[ October 08, 2002: Message edited by: Mark Nicholas ]