public static Object resolveFuture(Future<Object> future) { try { return future.get(); } catch (Throwable t) { return ExceptionUtil.toString(t); } }
public static Object resolveFuture(Future<Object> future) { try { return future.get(); } catch (Throwable t) { return ExceptionUtil.toString(t); } }
private static void addErrorResponse(JsonObject root, Address address, Throwable e) { addResponse(root, address, false, e.getMessage(), ExceptionUtil.toString(e)); }
private static void addErrorResponse(JsonObject root, Address address, Throwable e) { addResponse(root, address, false, e.getMessage(), ExceptionUtil.toString(e)); }
private static void addError(JsonObject root, Exception e) { root.add("hasDump", false); root.add("error", ExceptionUtil.toString(e)); } }
private static void addError(JsonObject root, Exception e) { root.add("hasDump", false); root.add("error", ExceptionUtil.toString(e)); } }