Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
10ee4689
authored
May 05, 2021
by
aquilescanta
Committed by
bachinger
May 06, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix some comments pending from previous change
PiperOrigin-RevId: 372094221
parent
2ef52904
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java
library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java
View file @
10ee4689
...
...
@@ -31,8 +31,10 @@ import java.lang.annotation.RetentionPolicy;
public
class
PlaybackException
extends
Exception
implements
Bundleable
{
/**
* Integer codes that identify causes of player errors. This list of errors may be extended in
* future versions, and {@link Player} implementations may define custom error codes.
* Codes that identify causes of player errors.
*
* <p>This list of errors may be extended in future versions, and {@link Player} implementations
* may define custom error codes.
*/
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
...
...
@@ -171,8 +173,8 @@ public class PlaybackException extends Exception implements Bundleable {
*/
public
static
final
int
CUSTOM_ERROR_CODE_BASE
=
1000000
;
/** An error code which identifies the
sourc
e of the playback failure. */
public
final
int
errorCode
;
/** An error code which identifies the
caus
e of the playback failure. */
@ErrorCode
public
final
int
errorCode
;
/** The value of {@link SystemClock#elapsedRealtime()} when this exception was created. */
public
final
long
timestampMs
;
...
...
@@ -185,7 +187,8 @@ public class PlaybackException extends Exception implements Bundleable {
* @param cause See {@link #getCause()}.
* @param message See {@link #getMessage()}.
*/
public
PlaybackException
(
@Nullable
String
message
,
@Nullable
Throwable
cause
,
int
errorCode
)
{
public
PlaybackException
(
@Nullable
String
message
,
@Nullable
Throwable
cause
,
@ErrorCode
int
errorCode
)
{
this
(
message
,
cause
,
errorCode
,
Clock
.
DEFAULT
.
elapsedRealtime
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment