PreloadException


@UnstableApi
public final class PreloadException extends Exception


Thrown when a non-recoverable preload failure occurs.

Summary

Public fields

final MediaItem

The MediaItem that this instance is associated with.

Public constructors

PreloadException(
    MediaItem mediaItem,
    @Nullable String message,
    @Nullable Throwable cause
)

Creates an instance.

Public methods

boolean

Returns whether the error data associated to this exception equals the error data associated to other.

Inherited fields

From java.lang.Throwable
Throwable
StackTraceElement[]

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

mediaItem

public final MediaItem mediaItem

The MediaItem that this instance is associated with.

Public constructors

PreloadException

public PreloadException(
    MediaItem mediaItem,
    @Nullable String message,
    @Nullable Throwable cause
)

Creates an instance.

Parameters
MediaItem mediaItem

The MediaItem that this instance is associated with.

@Nullable String message

See getMessage.

@Nullable Throwable cause

See getCause.

Public methods

errorInfoEquals

public boolean errorInfoEquals(@Nullable PreloadException other)

Returns whether the error data associated to this exception equals the error data associated to other.

Note that this method does not compare the exceptions' stack traces.