# Class AsyncMedia.MediaErrorEvent

java.lang.Object
com.codename1.ui.events.ActionEvent
com.codename1.media.AsyncMedia.MediaErrorEvent

Enclosing interface:
  `AsyncMedia`

public static class AsyncMedia.MediaErrorEvent extends ActionEvent
Encapsulates a media error event.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class ActionEvent

  `ActionEvent.Type`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MediaErrorEvent(Media source, AsyncMedia.MediaException error)`
  Creates a new error event with the given exception.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AsyncMedia.MediaException`
  `getMediaException()`
  Gets the exception associated with this event.

  ### Methods inherited from class ActionEvent

  `consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getPointerEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerEvent, setPointerPressedDuringDrag`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MediaErrorEvent

    public MediaErrorEvent(Media source, AsyncMedia.MediaException error)

    Creates a new error event with the given exception.

    ###### Parameters

    - `source`

    - `error`

- ## Method Details

  - ### getMediaException

    public AsyncMedia.MediaException getMediaException()
    Gets the exception associated with this event.