# 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.

##### Since

7.0

- ## 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, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, 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.