public class MediaErrorEvent
extends Event
Event
representing the occurrence of an error in handling media.Modifier and Type | Field and Description |
---|---|
private MediaException |
error
The
MediaException which provoked this error event. |
static <any> |
MEDIA_ERROR
The only valid event type for the
MediaErrorEvent . |
private static long |
serialVersionUID |
Constructor and Description |
---|
MediaErrorEvent(java.lang.Object source,
EventTarget target,
MediaException error)
Construct a new
MediaErrorEvent with the specified event
source, target and error. |
Modifier and Type | Method and Description |
---|---|
MediaErrorEvent |
copyFor(java.lang.Object newSource,
EventTarget newTarget) |
<any> |
getEventType() |
MediaException |
getMediaError()
Retrieve the error associated with this event.
|
java.lang.String |
toString()
Retrieve a
String representation of the event. |
private static final long serialVersionUID
public static final <any> MEDIA_ERROR
MediaErrorEvent
.private MediaException error
MediaException
which provoked this error event.MediaErrorEvent(java.lang.Object source, EventTarget target, MediaException error)
MediaErrorEvent
with the specified event
source, target and error.source
- the event source which sent the eventtarget
- the event target to associate with the eventerror
- the error which provoked the eventIllegalArgumentException
- if error
is
null
.public MediaException getMediaError()
MediaException
public java.lang.String toString()
String
representation of the event.public MediaErrorEvent copyFor(java.lang.Object newSource, EventTarget newTarget)
public <any> getEventType()