public final class MediaException
extends java.lang.RuntimeException
Media.onErrorProperty()
,
MediaView.onErrorProperty()
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
MediaException.Type
Enumeration describing categories of errors.
|
Modifier and Type | Field and Description |
---|---|
private MediaException.Type |
type
What caused this error.
|
Constructor and Description |
---|
MediaException(MediaException.Type type,
java.lang.String message) |
MediaException(MediaException.Type type,
java.lang.String message,
java.lang.Throwable t) |
MediaException(MediaException.Type type,
java.lang.Throwable t) |
Modifier and Type | Method and Description |
---|---|
(package private) static MediaException.Type |
errorCodeToType(int errorCode)
Map
MediaError codes to MediaException.Type s. |
(package private) static MediaException |
exceptionToMediaException(java.lang.Exception e)
converts Java exceptions into mediaErrors
|
(package private) static MediaException |
getMediaException(java.lang.Object source,
int errorCode,
java.lang.String message) |
MediaException.Type |
getType()
Retrieves the category into which this error falls.
|
(package private) static MediaException |
haltException(java.lang.String message) |
java.lang.String |
toString()
Returns a string representation of this
MediaException object. |
private final MediaException.Type type
MediaException(MediaException.Type type, java.lang.Throwable t)
MediaException(MediaException.Type type, java.lang.String message, java.lang.Throwable t)
MediaException(MediaException.Type type, java.lang.String message)
static MediaException.Type errorCodeToType(int errorCode)
MediaError
codes to MediaException.Type
s.errorCode
- Error code from implementation layer.static MediaException exceptionToMediaException(java.lang.Exception e)
static MediaException haltException(java.lang.String message)
static MediaException getMediaException(java.lang.Object source, int errorCode, java.lang.String message)
public MediaException.Type getType()
public java.lang.String toString()
MediaException
object.toString
in class java.lang.Throwable
MediaException
object.