This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from novoda/ALL-3936/error_classes
ALL-3936/Error classes
- Loading branch information
Showing
15 changed files
with
63 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.novoda.noplayer; | ||
|
||
public class NoPlayerError implements Player.PlayerError { | ||
|
||
private final PlayerErrorType playerErrorType; | ||
private final Throwable cause; | ||
|
||
public NoPlayerError(PlayerErrorType playerErrorType, Throwable cause) { | ||
this.playerErrorType = playerErrorType; | ||
this.cause = cause; | ||
} | ||
|
||
@Override | ||
public PlayerErrorType getType() { | ||
return playerErrorType; | ||
} | ||
|
||
@Override | ||
public Throwable getCause() { | ||
return cause; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
core/src/main/java/com/novoda/noplayer/PlayerErrorType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.novoda.noplayer; | ||
|
||
public enum PlayerErrorType { | ||
|
||
INVALID_RESPONSE_CODE, | ||
MALFORMED_CONTENT, | ||
FAILED_DRM_DECRYPTION, | ||
FAILED_DRM_INITIATING, | ||
FAILED_DRM_REQUEST, | ||
CONNECTIVITY_ERROR, | ||
MEDIA_FORMAT_NOT_RECOGNIZED, | ||
MEDIA_SERVER_DIED, | ||
MEDIA_SOURCE_ERROR, | ||
STREAMED_VIDEO_ERROR, | ||
UNKNOWN | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
core/src/main/java/com/novoda/noplayer/internal/exoplayer/playererror/ConnectivityError.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
.../src/main/java/com/novoda/noplayer/internal/exoplayer/playererror/DrmDecryptionError.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
.../src/main/java/com/novoda/noplayer/internal/exoplayer/playererror/DrmInitiatingError.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
core/src/main/java/com/novoda/noplayer/internal/exoplayer/playererror/DrmRequestError.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...ain/java/com/novoda/noplayer/internal/exoplayer/playererror/InvalidResponseCodeError.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...c/main/java/com/novoda/noplayer/internal/exoplayer/playererror/MalformedContentError.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
core/src/main/java/com/novoda/noplayer/internal/exoplayer/playererror/MediaSourceError.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
core/src/main/java/com/novoda/noplayer/internal/exoplayer/playererror/UnknownError.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.