Author: adietish
Date: 2010-08-27 08:21:18 -0400 (Fri, 27 Aug 2010)
New Revision: 24496
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/HttpResourceMap.java
Log:
[JBIDE-6880] exception throwing corrected
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/HttpResourceMap.java
===================================================================
---
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/HttpResourceMap.java 2010-08-27
12:20:53 UTC (rev 24495)
+++
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/HttpResourceMap.java 2010-08-27
12:21:18 UTC (rev 24496)
@@ -36,7 +36,7 @@
this.plugin = plugin;
}
- protected Map<String, String> getValueMap() throws UnsupportedEncodingException,
IOException {
+ protected Map<String, String> getValueMap() throws IOException {
if (valuesMap == null) {
this.valuesMap = parse(keys, valueDelimiter, request(url), new HashMap<String,
String>());
}
@@ -55,7 +55,7 @@
*
* @see HttpURLConnection
*/
- protected InputStreamReader request(String url) throws UnsupportedEncodingException {
+ protected InputStreamReader request(String url) throws IOException {
InputStreamReader responseReader = null;
try {
urlConnection.connect();
@@ -73,13 +73,14 @@
, UsageMessages.KillSwitchPreference_Error_Http, null, url);
plugin.getLog().log(status);
}
- } catch (Exception e) {
+ return responseReader;
+ } catch (IOException e) {
IStatus status = StatusUtils.getErrorStatus(
plugin.getBundle().getSymbolicName()
, UsageMessages.KillSwitchPreference_Error_Http, e, url);
plugin.getLog().log(status);
+ throw e;
}
- return responseReader;
}
private InputStreamReader getInputStreamReader(String contentType) throws
UnsupportedEncodingException, IOException {
Show replies by date