- All Implemented Interfaces:
- Serializable,- Comparable<MediaException.Type>,- Constable
- Enclosing class:
- MediaException
Enumeration describing categories of errors. A number of different
 actual 
Exceptions may belong to the same category.- Since:
- JavaFX 2.0
- 
Nested Class SummaryNested classes/interfaces declared in class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionIndicates an error has occurred: the media appears to be invalid or corrupted.Indicates an error has occurred: although the media may exist, it is not accessible.Indicates an error has occurred: the media does not exist or is otherwise unavailable.Indicates that the media has not been specified.Indicates that this media type is not supported by this platform.Indicates that an operation performed on the media is not supported by this platform.Indicates a playback error which does not fall into any of the other pre-defined categories.Indicates an unrecoverable error which has resulted in halting playback.Indicates an error has occurred for an unknown reason.
- 
Method SummaryModifier and TypeMethodDescriptionstatic MediaException.TypeReturns the enum constant of this class with the specified name.static MediaException.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
MEDIA_CORRUPTEDIndicates an error has occurred: the media appears to be invalid or corrupted.
- 
MEDIA_INACCESSIBLEIndicates an error has occurred: although the media may exist, it is not accessible.
- 
MEDIA_UNAVAILABLEIndicates an error has occurred: the media does not exist or is otherwise unavailable. This error may be the result of security settings preventing access when running in a browser.
- 
MEDIA_UNSPECIFIEDIndicates that the media has not been specified.
- 
MEDIA_UNSUPPORTEDIndicates that this media type is not supported by this platform.
- 
OPERATION_UNSUPPORTEDIndicates that an operation performed on the media is not supported by this platform.
- 
PLAYBACK_ERRORIndicates a playback error which does not fall into any of the other pre-defined categories.
- 
PLAYBACK_HALTEDIndicates an unrecoverable error which has resulted in halting playback.
- 
UNKNOWNIndicates an error has occurred for an unknown reason.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-