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); } }