Ignoring file not found exceptions
This commit is contained in:
parent
5068ee37e3
commit
891051df3c
1 changed files with 7 additions and 4 deletions
|
|
@ -7,6 +7,7 @@ import com.ericsson.uecontrol.gui.util.Configurator.Configurable;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
|
|
@ -100,6 +101,8 @@ public class UeBehaviourSurfing extends UeBehaviour {
|
||||||
}
|
}
|
||||||
if (cont.parsable)
|
if (cont.parsable)
|
||||||
getAdditionalContent(cont.url, content.toString(), urlList);
|
getAdditionalContent(cont.url, content.toString(), urlList);
|
||||||
|
}catch(FileNotFoundException fnf){
|
||||||
|
log.warn("Unable to download: "+urlList.get(i).url);
|
||||||
}catch(IOException e){
|
}catch(IOException e){
|
||||||
log.warn(null, e);
|
log.warn(null, e);
|
||||||
if(retException == null) retException = e;
|
if(retException == null) retException = e;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue