Skip to content

Commit

Permalink
update exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
snwinz committed Jul 30, 2020
1 parent 1ce3eab commit 4536e12
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.uniba.pi.loaders;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
Expand Down Expand Up @@ -33,7 +34,8 @@ public String getContentOfUrl(String url) {
connection.disconnect();
reader.close();
return retVal;
} catch (Exception e) {
} catch (IOException e) {
System.err.print("Connection could not be started:" );
e.printStackTrace();
return "";
}
Expand Down

0 comments on commit 4536e12

Please sign in to comment.