chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1672012 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java
Date Wed, 08 Apr 2015 07:29:00 GMT
Author: fmui
Date: Wed Apr  8 07:29:00 2015
New Revision: 1672012

URL: http://svn.apache.org/r1672012
Log:
Client: align error handing for the UrlConnection and Apache HTTP client

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java?rev=1672012&r1=1672011&r2=1672012&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/AbstractApacheClientHttpInvoker.java
Wed Apr  8 07:29:00 2015
@@ -305,7 +305,7 @@ public abstract class AbstractApacheClie
             // get the response
             return new Response(respCode, response.getStatusLine().getReasonPhrase(), responseHeaders,
inputStream,
                     errorStream);
-        } catch (IOException e) {
+        } catch (Exception e) {
             String status = (respCode > 0 ? " (HTTP status code " + respCode + ")" : "");
             throw new CmisConnectionException("Cannot access \"" + url + "\"" + status +
": " + e.getMessage(), e);
         }



Mime
View raw message