private static EventHandler<WebErrorEvent> createOnErrorHandler() { return new EventHandler<WebErrorEvent>() { @Override public void handle(WebErrorEvent event) { Log.p("WebError: " + event.toString()); } }; }
protected void handleError(WebErrorEvent ev) { D.print(ev); }
public void setOnError(EventHandler<WebErrorEvent> eventHandler) { webEngine.setOnError(eventHandler); }
@Override public void handle(WebErrorEvent event) { log.error("Javascript error: " + event.getMessage()); }