public static class AsyncMedia.MediaException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. AsyncMedia.MediaException
Encapsulates a media exception.

Constructors

public MediaException(AsyncMedia.MediaErrorType type)Creates an exception of the given type.
public MediaException(AsyncMedia.MediaErrorType type, String message)Creates an exception of the given type.
public MediaException(AsyncMedia.MediaErrorType type, Throwable cause)Creates an exception of the given type.

Methods

public AsyncMedia.MediaErrorType getMediaErrorType()Gets the error type.

Inherited methods

Constructor details

MediaException

public MediaException(AsyncMedia.MediaErrorType type)
Creates an exception of the given type.

Parameters

type AsyncMedia.MediaErrorType
The type of exception

MediaException

public MediaException(AsyncMedia.MediaErrorType type, String message)
Creates an exception of the given type.

Parameters

type AsyncMedia.MediaErrorType
THe type of error.
message String
The error message.

MediaException

public MediaException(AsyncMedia.MediaErrorType type, Throwable cause)
Creates an exception of the given type.

Parameters

type AsyncMedia.MediaErrorType
The type of error
cause Throwable
An underlying exception that caused this error.

Method details

getMediaErrorType

public AsyncMedia.MediaErrorType getMediaErrorType()
Gets the error type.