releng: simplify exception handling
diff --git a/src/main/java/org/apache/sling/tooling/support/install/impl/InstallationResult.java b/src/main/java/org/apache/sling/tooling/support/install/impl/InstallationResult.java
index d97894f..63e3b27 100644
--- a/src/main/java/org/apache/sling/tooling/support/install/impl/InstallationResult.java
+++ b/src/main/java/org/apache/sling/tooling/support/install/impl/InstallationResult.java
@@ -31,20 +31,14 @@
this.message = message;
}
- public void render(Writer out) {
-
- try {
- JSONWriter writer = new JSONWriter(out);
- writer.object();
- writer.key("status").value(status ? "OK" : "FAILURE");
- if (message != null) {
- writer.key("message").value(message);
- }
- writer.endObject();
- } catch (IOException e) {
- // never happens
- throw new RuntimeException(e);
+ public void render(Writer out) throws IOException {
+ JSONWriter writer = new JSONWriter(out);
+ writer.object();
+ writer.key("status").value(status ? "OK" : "FAILURE");
+ if (message != null) {
+ writer.key("message").value(message);
}
+ writer.endObject();
}
}