public final class MediaPlayerException extends Exception implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_DRM |
static int |
TYPE_IO |
static int |
TYPE_PLAYBACK_LEASE |
static int |
TYPE_PLAYBACK_QUEUE |
static int |
TYPE_UNKNOWN |
| Constructor and Description |
|---|
MediaPlayerException()
A constructor that defines a media player exception.
|
MediaPlayerException(int type,
Throwable cause)
A constructor that defines a media player exception by type.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getExtraParams() |
int |
getType()
Gets the type of the media player exception.
|
void |
readExternal(ObjectInput in)
Write external data to the media player exception.
|
void |
setParams(String key,
String value) |
void |
writeExternal(ObjectOutput out)
Read external data from the media player exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int TYPE_DRM
public static final int TYPE_IO
public static final int TYPE_PLAYBACK_LEASE
public static final int TYPE_PLAYBACK_QUEUE
public static final int TYPE_UNKNOWN
public MediaPlayerException()
public MediaPlayerException(int type,
Throwable cause)
public int getType()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOException