Skip to content

Commit

Permalink
Don't use java.io.IoException(Throwable) constructor. It is not avail…
Browse files Browse the repository at this point in the history
…able in Java 1.5 and therefore not in Android API < 9
  • Loading branch information
candrews committed Aug 13, 2012
1 parent 313d414 commit 651beea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -197,7 +197,7 @@ public HttpEngine(HttpURLConnectionImpl policy, String method, RawHeaders reques
try {
uri = URLs.toURILenient(policy.getURL());
} catch (URISyntaxException e) {
throw new IOException(e);
throw new IOException(e.toString());
}

this.requestHeaders = new RequestHeaders(uri, new RawHeaders(requestHeaders));
Expand Down
Expand Up @@ -484,7 +484,7 @@ private Certificate[] readCertArray(InputStream in) throws IOException {
}
return result;
} catch (CertificateException e) {
throw new IOException(e);
throw new IOException(e.toString());
}
}

Expand All @@ -501,7 +501,7 @@ private void writeCertArray(Writer writer, Certificate[] certificates) throws IO
writer.write(line + '\n');
}
} catch (CertificateEncodingException e) {
throw new IOException(e);
throw new IOException(e.toString());
}
}

Expand Down

0 comments on commit 651beea

Please sign in to comment.