Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

ALL-3936/Error classes #64

Merged
merged 5 commits into from
Jun 30, 2017
Merged

ALL-3936/Error classes #64

merged 5 commits into from
Jun 30, 2017

Conversation

Mecharyry
Copy link
Contributor

Problem

We are exposing the internals of no-player through our Player.PlayerError implementations that reference directly media-player or exo-player.

Solution

Remove the specific implementations in favour of an PlayerErrorType that lives on the Player.PlayerError. We need to make these types more generic to apply across Player boundaries. This is the first step to remove the class implementations for the type.

Test(s) added

No, just swapping out the implementations for a generic exception.

Screenshots

No UI changes.

Paired with

@Dorvaryn

@ataulm ataulm self-requested a review June 30, 2017 09:26
@ataulm ataulm self-assigned this Jun 30, 2017

public class NoPlayerError implements Player.PlayerError {

private final PlayerErrorType playerErrorType;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@zegnus zegnus self-assigned this Jun 30, 2017
FAILED_DRM_INITIATING,
FAILED_DRM_REQUEST,
CONNECTIVITY_ERROR,
MEDIA_FORMAT_NOT_RECOGNISED,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RECOGNIZED 🇺🇸

MEDIA_SERVER_DIED,
MEDIA_SOURCE_ERROR,
STREAMED_VIDEO_ERROR,
UNKNOWN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dorvaryn disappointed to not find UNKOWN

Copy link
Contributor

@ataulm ataulm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the UK-> US (/modern UK) spelling then LGTM

@zegnus zegnus merged commit dcc4fd6 into exo-player-2 Jun 30, 2017
@zegnus zegnus deleted the ALL-3936/error_classes branch June 30, 2017 09:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants