Improved exception messages in JavaFX version.