public final class ExceptionHandler extends Object
| Constructor and Description |
|---|
ExceptionHandler(Throwable exception)
Creates an instance with the given exception.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.layout.Pane |
asPane() |
javafx.scene.layout.Pane |
asPane(String userReadableError)
Same as
asPane() but with a custom error label on top of the stack trace. |
static CompletionStage<javafx.stage.Stage> |
displayExceptionPane(String title,
String readable,
Throwable exception)
Creates a pop-up and displays it based on a given exception, pop-up title and custom error message.
|
public ExceptionHandler(Throwable exception)
exception - The exception to base this instance onpublic javafx.scene.layout.Pane asPane()
Throwable.getMessage() as a label over the stacktrace.public javafx.scene.layout.Pane asPane(String userReadableError)
asPane() but with a custom error label on top of the stack trace.userReadableError - The custom error message.public static CompletionStage<javafx.stage.Stage> displayExceptionPane(String title, String readable, Throwable exception)
title - The title of the error pop-upreadable - The custom label to display on top of the stack traceexception - The exception to useCompletionStage to know when the pop-up displayed and have a handle on it.Copyright © 2018. All rights reserved.