Hi,
I would like to add some additional / custom reporting in case an unexpected Exception is thrown.
However, for exceptions triggered by UI events it looks like the catch-all exception handler is hard wired in playn.core.Dispatcher#tryInteract:
static <L, E extends Input.Impl> void tryInteract (AbstractLayer layer,
Class<L> listenerType, Interaction<L, E> interaction, E event) {
try {
layer.interact(listenerType, interaction, event);
} catch (Throwable t) {
PlayN.log().warn("Interaction failure [layer=" + layer + ", iact=" + interaction +
", event=" + event + "]", t);
}
}
Is there some way to supply custom handling that I am missing?
Otherwise I'd patch the Dispatcher.