# Serialized Form

- ## Package com.castlabs.android.downloader

  - ### Exception Class com.castlabs.android.downloader.ZipDataSource.ZipDataSourceException

    class ZipDataSourceException extends IOException implements Serializable

- ## Package com.castlabs.android.drm

  - ### Exception Class com.castlabs.android.drm.CastlabsMediaDrm.CastlabsMediaDrmException

    class CastlabsMediaDrmException extends Exception implements Serializable

    - #### Serialized Fields

      - ##### type

            int type

        The type of the exception, indicating the specific error that occurred.

  - ### Exception Class com.castlabs.android.drm.DrmException

    class DrmException extends DrmTodayException implements Serializable

  - ### Exception Class com.castlabs.android.drm.DrmTodayException

    class DrmTodayException extends Exception implements Serializable

    - #### Serialized Fields

      - ##### customCode

            String customCode

        Original DrmToday response code string

      - ##### customMessage

            String customMessage

        Custom message that is extracted from the CRT message in the error response

      - ##### errorCode

            int errorCode

        The error errorCode

      - ##### traceId

            String traceId

        Trace identifier extracted from DRMToday responses.

  - ### Exception Class com.castlabs.android.drm.DrmUtils.HttpExecutorException

    class HttpExecutorException extends IOException implements Serializable

    - #### Serialized Fields

      - ##### cause

            Throwable cause

        The cause of the exception

      - ##### responseBody

            String responseBody

        The response body as a string

      - ##### responseCode

            int responseCode

        The HTTP response code

      - ##### responseHeaders

            Map<String,List<String>> responseHeaders

        The response headers

  - ### Exception Class com.castlabs.android.drm.ProvisioningManager.ProvisionException

    class ProvisionException extends Exception implements Serializable

- ## Package com.castlabs.android.network

  - ### Exception Class com.castlabs.android.network.ConnectivityRegainedException

    class ConnectivityRegainedException extends IOException implements Serializable

- ## Package com.castlabs.android.player.exceptions

  - ### Exception Class com.castlabs.android.player.exceptions.BlocklistException

    class BlocklistException extends Exception implements Serializable

    - #### Serialized Fields

      - ##### durationMs

            long durationMs

        The duration of the blocklisted track in milliseconds.

      - ##### format

            com.google.android.exoplayer2.Format format

        The format of the blocklisted track.

      - ##### reason

            int reason

        The reason why the track was blocklisted.

  - ### Exception Class com.castlabs.android.player.exceptions.CastlabsPlayerException

    class CastlabsPlayerException extends Exception implements Serializable

    - #### Serialized Fields

      - ##### errorData

            Bundle errorData

        Additional data associated with the error.

      - ##### explicitCauseMessage

            String explicitCauseMessage

        An explicit message describing the cause of the error.

      - ##### severity

            int severity

        The severity of the error.

      - ##### type

            int type

        The type of the error.

  - ### Exception Class com.castlabs.android.player.exceptions.DownloadException

    class DownloadException extends IOException implements Serializable

    - #### Serialized Fields

      - ##### customMessage

            String customMessage

        Custom error message for the download exception

      - ##### responseBody

            byte[] responseBody

        Response body of the failed request, if available

      - ##### statusCode

            int statusCode

        HTTP status code of the failed request, or -1 if not applicable

      - ##### trackType

            int trackType

        The type of track that caused the download error

      - ##### uri

            Uri uri

        The URI that was being downloaded when the error occurred

  - ### Exception Class com.castlabs.android.player.exceptions.FilterException

    class FilterException extends CastlabsPlayerException implements Serializable

    - #### Serialized Fields

      - ##### reason

            int reason

        Bit-set of `SdkConsts.FILTER_REASON_BLACKLISTED`, `SdkConsts.FILTER_REASON_NO_CODEC`, `SdkConsts.FILTER_REASON_HD_NOT_PERMITTED` and `SdkConsts.FILTER_REASON_EXCEED_MAX_PIXELS`

  - ### Exception Class com.castlabs.android.player.exceptions.ParameterNotSetException

    class ParameterNotSetException extends Exception implements Serializable

  - ### Exception Class com.castlabs.android.player.exceptions.PlaylistException

    class PlaylistException extends Exception implements Serializable

    - #### Serialized Fields

      - ##### currentItemIndex

            int currentItemIndex

        The index of the item that was playing when the error occurred.

      - ##### failedConfig

            PlayerConfig failedConfig

        The configuration of the playlist item that failed to load.

      - ##### failedItemIndex

            int failedItemIndex

        The index of the failed item in the playlist.

      - ##### playlistSnapshot

            ArrayList<PlayerConfig> playlistSnapshot

        A snapshot of the playlist at the time of the error.

  - ### Exception Class com.castlabs.android.player.exceptions.TunnelingException

    class TunnelingException extends Exception implements Serializable

    - #### Serialized Fields

      - ##### reason

            TunnelingException.Reason reason

        The reason for the exception.