UnsupportedDrmException


@UnstableApi
public final class UnsupportedDrmException extends Exception


Thrown when the requested DRM scheme is not supported.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation UnsupportedDrmException.Reason

The reason for the exception.

Constants

static final int

There device advertises support for the requested DRM scheme, but there was an error instantiating it.

static final int

The requested DRM scheme is unsupported by the device.

Public constructors

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

Constants

REASON_INSTANTIATION_ERROR

public static final int REASON_INSTANTIATION_ERROR = 2

There device advertises support for the requested DRM scheme, but there was an error instantiating it. The cause can be retrieved using getCause.

REASON_UNSUPPORTED_SCHEME

public static final int REASON_UNSUPPORTED_SCHEME = 1

The requested DRM scheme is unsupported by the device.

Public constructors

UnsupportedDrmException

public UnsupportedDrmException(
    @UnsupportedDrmException.Reason int reason,
    Exception cause
)
Parameters
@UnsupportedDrmException.Reason int reason

REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.

Exception cause

The cause of this exception.