Package com.castlabs.android.player

# Class ErrorMediaSourceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.castlabs.android.player.ErrorMediaSourceException

All Implemented Interfaces:
  `Serializable`

public final class ErrorMediaSourceException extends IOException
`IOException` wrapper that preserves the original `CastlabsPlayerException`.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ErrorMediaSourceException(CastlabsPlayerException playerException)`
  Creates a new wrapper for the given SDK error.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CastlabsPlayerException`
  `getPlayerException()`
  Returns the original SDK error.

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

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

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

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

- ## Constructor Details

  - ### ErrorMediaSourceException

    public ErrorMediaSourceException(@NonNull CastlabsPlayerException playerException)
    Creates a new wrapper for the given SDK error.
    Parameters:
      `playerException` - The original SDK error.

- ## Method Details

  - ### getPlayerException

    @NonNull public CastlabsPlayerException getPlayerException()
    Returns the original SDK error.
    Returns:
      The original `CastlabsPlayerException`.