public ReadOnlyObjectProperty<MediaException> errorProperty ()

taken from field

A property set to a MediaException value when an error occurs. If error is non-null, then the media could not be loaded and is not usable. If onError is non-null, it will be invoked when the error property is set.

See also:
MediaException