public void setErrorMessageHandler(Consumer<String> handler){
        errorMessageHandler = handler;
    }
Set function to handle errors. 
The default implementation show a dialog if available.
@param handler Consumer to which the error is passed as String
jme3-core/src/main/java/com/jme3/system/JmeSystemDelegate.java