public final class UnsupportedDrmException
extends java.lang.Exception
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
UnsupportedDrmException.Reason
The reason for the exception.
|
| 限定符和类型 | 字段和说明 |
|---|---|
int |
reason
|
static int |
REASON_INSTANTIATION_ERROR
There device advertises support for the requested DRM scheme, but there was an error
instantiating it.
|
static int |
REASON_UNSUPPORTED_SCHEME
The requested DRM scheme is unsupported by the device.
|
| 构造器和说明 |
|---|
UnsupportedDrmException(int reason) |
UnsupportedDrmException(int reason,
java.lang.Exception cause) |
public static final int REASON_UNSUPPORTED_SCHEME
public static final int REASON_INSTANTIATION_ERROR
Throwable.getCause().@UnsupportedDrmException.Reason public final int reason
public UnsupportedDrmException(@UnsupportedDrmException.Reason int reason)
reason - REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.public UnsupportedDrmException(@UnsupportedDrmException.Reason int reason, java.lang.Exception cause)
reason - REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.cause - The cause of this exception.