public final class UnsupportedDrmException extends Exception
Modifier and Type | Class and Description |
---|---|
static interface |
UnsupportedDrmException.Reason
The reason for the exception.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
UnsupportedDrmException(int reason) |
UnsupportedDrmException(int reason,
Exception cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int REASON_UNSUPPORTED_SCHEME
public static final int REASON_INSTANTIATION_ERROR
Throwable.getCause()
.public final int reason
public UnsupportedDrmException(int reason)
reason
- REASON_UNSUPPORTED_SCHEME
or REASON_INSTANTIATION_ERROR
.public UnsupportedDrmException(int reason, Exception cause)
reason
- REASON_UNSUPPORTED_SCHEME
or REASON_INSTANTIATION_ERROR
.cause
- The cause of this exception.