MediaDrmCallbackException


@UnstableApi
public final class MediaDrmCallbackException extends IOException


Thrown when an error occurs while executing a DRM key or provisioning request.

Summary

Public fields

final long

The number of bytes obtained from the server.

final DataSpec

The DataSpec associated with the request.

final Map<StringList<String>>

The HTTP request headers included in the response.

final Uri

The Uri after redirections, or dataSpec.uri if no redirection occurred.

Public constructors

MediaDrmCallbackException(
    DataSpec dataSpec,
    Uri uriAfterRedirects,
    Map<StringList<String>> responseHeaders,
    long bytesLoaded,
    Throwable cause
)

Creates a new instance with the given values.

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

bytesLoaded

public final long bytesLoaded

The number of bytes obtained from the server.

dataSpec

public final DataSpec dataSpec

The DataSpec associated with the request.

responseHeaders

public final Map<StringList<String>> responseHeaders

The HTTP request headers included in the response.

uriAfterRedirects

public final Uri uriAfterRedirects

The Uri after redirections, or dataSpec.uri if no redirection occurred.

Public constructors

MediaDrmCallbackException

public MediaDrmCallbackException(
    DataSpec dataSpec,
    Uri uriAfterRedirects,
    Map<StringList<String>> responseHeaders,
    long bytesLoaded,
    Throwable cause
)

Creates a new instance with the given values.

Parameters
DataSpec dataSpec

See dataSpec.

Uri uriAfterRedirects

See uriAfterRedirects.

Map<StringList<String>> responseHeaders

See responseHeaders.

long bytesLoaded

See bytesLoaded.

Throwable cause

The cause of the exception.