diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-27 11:41:53 +0200 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-27 11:41:53 +0200 |
commit | 242ad944762e17fd3636beb40237c870551a653a (patch) | |
tree | 244d9bbbd141d7a51ece921ae28edbf1ac01237d /same/src | |
parent | 58d19fcba9cf287ef82964123093e53b9742ff87 (diff) |
Fix Android problem.
Avoid the IOException(Throwable) constructor on Android.
Diffstat (limited to 'same/src')
-rw-r--r-- | same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java b/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java index b610a2f..d5e30d7 100644 --- a/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java +++ b/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java @@ -54,7 +54,7 @@ public class MyJsonRpcHttpClient extends JsonRpcHttpClient { try { rpcClient.invoke(methodName, arguments, out); } catch (Exception e) { - throw new IOException(e.fillInStackTrace()); + throw new IOException("RPC Failed: " + e.getMessage()); } } }); |