file: ErrorSubScene.aus

class: ErrorSubScene

[20:7] extends: FxglSubScene

Wraps FXGL's ErrorSubScene (com.almasb.fxgl.app.scene.ErrorSubScene), a SubScene used to surface a Throwable with its stack trace and an "Exit game" button. FXGL pushes this sub-scene automatically when an uncaught exception bubbles up; game code can also push one manually to surface a recoverable error. The constructor takes the scene dimensions, the error to display, and a Runnable invoked when the Exit button is pressed.

Methods