Spec-Zone.ru › OpenJavaFX 24

Class MediaException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javafx.scene.media.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

Nested Class Summary

Modifier and Type Class Description
static enum  MediaException.Type
Enumeration describing categories of errors.

Method Summary

Modifier and Type Method Description
MediaException.Type getType()
Retrieves the category into which this error falls.
String toString()
Returns a string representation of this MediaException object.

Methods declared in class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

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.

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API