Module javafx.media

Class MediaException

All Implemented Interfaces:
Serializable

public final class MediaException
extends RuntimeException
A MediaException describes a runtime error condition in a Media, MediaPlayer or MediaView.
Since:
JavaFX 2.0
See Also:
Media.onErrorProperty(), MediaView.onErrorProperty(), Serialized Form
  • Method Details

    • getType

      public MediaException.Type getType()
      Retrieves the category into which this error falls.
      Returns:
      The type of this error
    • toString

      public String toString()
      Returns a string representation of this MediaException object.
      Overrides:
      toString in class Throwable
      Returns:
      a string representation of this MediaException object.