public final Exception getException ()

taken from field

The exception which caused image loading to fail. Contains a non-null value only if the error property is set to true.

Since:  JavaFX 8.0