public static enum MediaException.Type extends Enum<MediaException.Type>
Exception
s may belong to the same category.Enum Constant and Description |
---|
MEDIA_CORRUPTED
Indicates an error has occurred: the media appears to be
invalid or corrupted.
|
MEDIA_INACCESSIBLE
Indicates an error has occurred: although the media
may exist, it is not accessible.
|
MEDIA_UNAVAILABLE
Indicates an error has occurred: the media
does not exist or is otherwise unavailable.
|
MEDIA_UNSPECIFIED
Indicates that the media has not been specified.
|
MEDIA_UNSUPPORTED
Indicates that this media type is not supported by this platform.
|
OPERATION_UNSUPPORTED
Indicates that an operation performed on the media is not
supported by this platform.
|
PLAYBACK_ERROR
Indicates a playback error which does not fall into any of the other
pre-defined categories.
|
PLAYBACK_HALTED
Indicates an unrecoverable error which has resulted in halting playback.
|
UNKNOWN
Indicates an error has occurred for an unknown reason.
|
Modifier and Type | Method and Description |
---|---|
static MediaException.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaException.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaException.Type MEDIA_CORRUPTED
public static final MediaException.Type MEDIA_INACCESSIBLE
public static final MediaException.Type MEDIA_UNAVAILABLE
public static final MediaException.Type MEDIA_UNSPECIFIED
public static final MediaException.Type MEDIA_UNSUPPORTED
public static final MediaException.Type OPERATION_UNSUPPORTED
public static final MediaException.Type PLAYBACK_ERROR
public static final MediaException.Type PLAYBACK_HALTED
public static final MediaException.Type UNKNOWN
public static MediaException.Type[] values()
for (MediaException.Type c : MediaException.Type.values()) System.out.println(c);
public static MediaException.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullSubmit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.