/** * Handles the invocation exception. * <p> * The default implementation throws a {@link TentackleRuntimeException}. * * @param thrbl the exception * @param method the failed method * @param args the visited object plus optional parameters */ protected void handleException(Throwable thrbl, Method method, Object... args) { String message = "invocation of " + method + " failed for "; try { message += StringHelper.objectArrayToString(args, ", "); } catch (RuntimeException re) { message += "? -> " + re.getMessage(); } throw new TentackleRuntimeException(message, thrbl); }
LOGGER.fine(() -> "invoking " + method + "(" + StringHelper.objectArrayToString(args, ", ") + ")"); method.invoke(this, args);