From cfbcfa310244400656e6f94bbd0bea7909fa3536 Mon Sep 17 00:00:00 2001 From: Joris Borgdorff Date: Mon, 1 Oct 2018 17:02:13 +0200 Subject: [PATCH] Remove UncheckedException on rethrow --- .../org/radarcns/producer/rest/UncheckedRequestException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radar-commons/src/main/java/org/radarcns/producer/rest/UncheckedRequestException.java b/radar-commons/src/main/java/org/radarcns/producer/rest/UncheckedRequestException.java index da2acbdf..1af5f5ef 100644 --- a/radar-commons/src/main/java/org/radarcns/producer/rest/UncheckedRequestException.java +++ b/radar-commons/src/main/java/org/radarcns/producer/rest/UncheckedRequestException.java @@ -46,7 +46,7 @@ public void rethrow() throws IOException { if (getCause() instanceof IOException) { throw (IOException)getCause(); } else { - throw this; + throw new IOException(this); } }