IOException constructor taking Exception as parameter is
new for JDK 6.
Change-Id: Iec349fc7be9e9fbaeb53841894883c47a98a7b29
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
final HttpsURLConnection sslConn = (HttpsURLConnection) conn;
sslConn.setSSLSocketFactory(ctx.getSocketFactory());
} catch (KeyManagementException e) {
- throw new IOException(e);
+ throw new IOException(e.getMessage());
} catch (NoSuchAlgorithmException e) {
- throw new IOException(e);
+ throw new IOException(e.getMessage());
}
}