public static CompletionStage < Stage > displayExceptionPane ( final String title , final String readable , final Throwable exception ) { final Pane exceptionPane = new ExceptionHandler ( exception ) . asPane ( readable ) ; final CompletionStage < Stage > exceptionStage = Stages . stageOf ( title , exceptionPane ) ; return exceptionStage . thenCompose ( Stages :: scheduleDisplaying ) ; }
Creates a pop - up and displays it based on a given exception pop - up title and custom error message .